Transaction
Signs an unsigned transaction and broadcasts it to chain.| Property | Description | Type - Optional |
|---|---|---|
kind | Transaction | String |
transaction | The unsigned hex encoded transaction as shown below. | String |
externalId | A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here). | String (optional) |
Typescript Example with xrpl.js
First install xrpl.js. You can find the full documentation here. Here a code sample to broadcast a transaction via the Dfns TypeScript SDK:Complete examples
For complete working examples, see the SDK examples on GitHub:- Basic transaction - Simple XRP payment
- Trustlines - Trustline operations for issued currencies
