Pular para o conteúdo

Set up Solana durable nonce accounts in the UI

Available from version 1.43.9

The Solana durable nonce support in the UI is available from patch release 1.43.9. On earlier releases, use the API.

A Solana transaction normally references a recent blockhash that expires in about 90 seconds. A transaction that references a durable nonce instead stays valid until it uses the nonce. You create a durable nonce account once, and then reference it from transaction orders.

For background on durable nonces, the nonce authority, and cold vault signing, see Set up Solana durable nonce accounts with the API.

Delegated nonce authorities need the API

In the UI, you can create a nonce account whose authority is any Ripple Custody (Vault) account, including a cold vault account, an endpoint, or a Solana address. However, a transaction order in the UI has no field for a separate nonce authority. The UI can only use a nonce account whose authority is the order's source account. To send from a cold vault account with a nonce that another account owns, use the API and set parameters.nonceAuthority. For more information, see Send a transaction that uses the nonce.

Prerequisites

PrerequisiteAdditional information
A hot vault Solana account to pay for the nonce accountView account details
Enough released SOL in that account to cover the rent-exempt deposit of the nonce account, about 0.00204 SOL, and the transaction fee. Ripple Custody (Vault) quarantines incoming deposits, and you can't spend them until you release them.Check account balances
Release quarantined assets
A second Solana account in the same hot vault to become the nonce account. It needs no funding, and it must not hold any SOL.Create an account in the UI
A deployment that runs the Unified Indexer Service v2, if the nonce authority is a different account from the sourceUnified Indexer Service

Create the nonce account

  1. Click Create order and select Ledger-specific operations.

  2. In Ledger, select a Solana ledger.

  3. In Source account, select the hot vault account that pays the rent and the fees.

  4. In Operation, select Create nonce account.

  5. In New nonce account, select the account that becomes the durable nonce account.

  6. Optionally, click Add nonce authority (optional) and select the account or endpoint that owns the nonce, or paste a Solana address. If you don't set one, the source account becomes the nonce authority.

    The nonce authority is the only account that can sign transactions that use this nonce. You can't change it later.

    Ripple Custody (Vault) can only use a nonce whose authority is an account that it holds the key for. If you name an endpoint or an external address, you can't use or close the nonce account through Ripple Custody (Vault), and the rent deposit stays locked in the account.

  7. Optionally, click Add memo (optional) and enter a memo. To add more memos, click Add additional memos (optional).

  8. In the Fee section, select the Fee Strategy: Low, Medium, or High. Ripple Custody (Vault) displays the estimated fee.

  9. Optionally, click Set maximum fee (optional) and set a maximum fee. Select an Offset by percentage to set the maximum fee as the estimated fee plus 10%, 20%, or 30%, or select Custom and enter an amount. Ripple Custody (Vault) doesn't broadcast the transaction if the fees exceed this cap.

    The maximum fee must cover the rent-exempt deposit of about 0.00204 SOL as well as the fee for the two signatures. For more information, see Fee strategy and maximum fee.

  10. Optionally, add a description for approvers.

  11. Click Submit for approval and sign the operation with the app.

Ledger-specific operations form with the Create nonce account operation, a new nonce account, and a nonce authority

After the intent executes, Ripple Custody (Vault) broadcasts a transaction that creates the nonce account and records the nonce authority. The transaction moves the rent-exempt deposit, 0.00203928 SOL, from the source account to the nonce account. It carries two signatures, from the source account and from the new nonce account. In the transaction list, the order appears with the type Account settings.

To confirm the nonce authority, look up the nonce account in a Solana explorer. Its authority field shows the address of the nonce authority.

Send SOL with a durable nonce

  1. Click Create order and select Transaction order.
  2. In Ledger, select the Solana ledger.
  3. In Source account, select the account that sends the SOL and pays the fee. It must be the nonce authority of the nonce account that you use.
  4. In Destination, select a Ripple Custody (Vault) account, or paste a Solana address and move to the next field.
  5. In Amount, enter the amount and select SOL.
  6. To send to more than one destination in the same transaction, click Add destinations and repeat the previous two steps.
  7. In the Fee section, select the fee strategy and, optionally, set a maximum fee.
  8. Optionally, enter a description, and click Add memo (optional) to add a memo.
  9. Click Add nonce account (optional) and select the nonce account.
  10. Click Submit for approval and sign the operation with the app.

Create transaction order page for a SOL transfer that uses a durable nonce account

After the intent executes, Ripple Custody (Vault) adds an advanceNonce instruction ahead of the transfer and broadcasts the transaction. Because the source account is also the nonce authority, the transaction carries one signature.

The Ledger-specific operations form also has Add nonce account (optional) for every Solana operation, such as Transfer token and Mint token. For those operations, see Manage Solana tokens in the UI.

Each nonce account supports one in-flight transaction at a time. If a second order references the same nonce account, it waits in the Preparing status until the first one completes. For more information, see Durable nonce accounts and the nonce authority.