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 NEAR JavaScript API
First install the NEAR JavaScript API. You can find the full documentation here: https://near.github.io/near-api-js 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 NEAR transfer
