Offline Transactions
Sign Transaction
To create an offline transaction, you have to sign the transaction and then anyone can broadcast it on the network.
Partial Sign Transaction
When a transaction requires multiple signatures, you can partially sign it. The other signers can then sign and broadcast it on the network.
Some examples of when this is useful:
- Send an SPL token in return for payment
- Sign a transaction so that you can later verify its authenticity
- Call custom programs in a transaction that require your signature
In this example Bob sends Alice an SPL token in return for her payment:
Durable Nonce
recentBlockhash
is an important value for a transaction. Your transaction
will
be rejected if you use an expired blockhash (older than 150 blocks). Instead of
a recent blockhash, you can use a durable nonce, which never expires. To use a
durable nonce, your transaction must:
- use a
nonce
stored innonce account
as a recent blockhash - put
nonce advance
operation in the first instruction