Transaction
Signs an unsigned transaction and broadcasts it to chain.| Field | 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 Stellar SDK
First install the Stellar SDK. You can find the full documentation here. Here a code sample to broadcast a transaction via the Dfns TypeScript SDK:Complete examples
For a complete working example, see the SDK example on GitHub:- Basic transaction - Simple XLM transfer using Stellar SDK and Horizon API
