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 Aptos SDK
First install the Aptos Typescript 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 coin transfer
- Fee payer transaction - Transaction with designated fee payer
- Multi-agent transaction - Multi-agent transaction scenarios
