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 IOTA SDK
First install the IOTA SDK. 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 IOTA transfer
- Contract call - Smart contract interactions
- Lock/unlock transactions - Timelocked and conditional transfers
