Skip to main content

Transaction

Signs an unsigned transaction and broadcasts it to chain.
The serialized transaction must include a 0-padded placeholder signature (64 zero bytes) for each required signer, otherwise deserialization fails. Solana Kit and web3.js add them when you serialize an unsigned transaction. If you build the transaction with another library, such as the Go SDK, include the placeholder signatures yourself.

TypeScript example

Build the transaction with Solana Kit (@solana/kit and @solana-program/system), the JavaScript SDK Solana recommends, or with @solana/web3.js 1.x. Both produce the same serialized transaction. Then broadcast it with the DFNS TypeScript SDK:

Durable nonce transactions

A signed Solana transaction normally expires when its recent blockhash does (about 90 seconds). To keep a signed transaction valid indefinitely — for offline signing, or when a policy approval sits between signing and broadcast — build it against a durable nonce instead of a recent blockhash. For plain SOL and SPL transfers, the simplest path is the DFNS-managed nonce pool: bootstrap it once with the CreateSolanaNonceAccounts transaction kind, then set useDurableNonce: true on the transfer and DFNS picks and advances a nonce for you. To use a durable nonce on an arbitrary transaction you build yourself, manage the nonce account through Sign and Broadcast:
  1. Create a nonce account owned by your wallet with SystemProgram.createAccountWithSeed + SystemProgram.nonceInitialize, then sign and broadcast it. Deriving the address from the wallet (createWithSeed) keeps the wallet as the only required signer.
  2. Use it: set the transaction’s recentBlockhash to the nonce account’s current nonce value, and make SystemProgram.nonceAdvance the first instruction. Sign and broadcast, wait for confirmation, then re-read the nonce value before the next transaction — each executed transaction advances it.
  3. Destroy it when done with SystemProgram.nonceWithdraw, which closes the account and reclaims the rent. There is no dedicated close transaction kind; the withdraw instruction does it.
Use a seed you control (for example my-app/nonce/0), distinct from the pool’s nonce/<index> seeds, so a self-managed account and a pool account can never pick the same nonce. See the full runnable example: durable-nonce-tx. For the dashboard and pool-based flow, see Use Solana durable nonces.

Complete examples

For complete working examples, see the SDK examples on GitHub:
Last modified on November 11, 2026