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 MeshJS SDK
First install the MeshJS SDK. You can find the full documentation here You also need a service that tracks the account’s UTXO, for example Blockfrost. The Dfns TypeScript SDK has an example demonstrating how to write a custom Blockfrost initiator plugin for MeshJS. 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 - Lovelace transfer using MeshJS and Blockfrost
