Docs

Off grid payments

Your payment is passed from device to device until one of them gets online.

What you need

  • A Solana keypair file with SOL in it. This is the wallet you pay from.
  • A durable nonce account for that wallet, so the payment does not expire on the way. You make it once, while online.
  • The off grid address of a node near you, as host and port (port 9103 unless its owner changed it). Your device reaches it over a local link such as the same WiFi. No internet needed.

Before you go offline

With the Solana command line tools, make the nonce account and read its value:

solana-keygen new -o nonce.json
solana create-nonce-account nonce.json 0.0015 --keypair wallet.json
solana address -k nonce.json
solana nonce nonce.json

Keep the nonce account address and the nonce value. To tip the nodes that carry your payment, also keep the network tip account, network.tipAccount here:

curl https://tangentsystems.net/api/health

Send

node bin/client.js offgrid-send --coordinator https://tangentsystems.net \
  --peer 192.168.1.20:9103 --keypair wallet.json \
  --nonce-account <nonce account> --nonce-value <nonce value> \
  --to <recipient address> --lamports 50000000 \
  --tip 60000 --tip-account <tip account>

--lamports is the amount: 1 SOL is 1,000,000,000 lamports. --tip is what the carrying nodes share. Leave both tip options out to send without a tip.

What happens to it

  • The tool signs the payment on your device and hands it to the node.
  • Nodes pass it along, piece by piece, until one with internet puts it on chain.
  • That node sends a signed receipt back the way the payment came.
  • The node that put it on chain and the ones that carried it share your tip.

How to know it landed

The tool waits up to 120 seconds for the receipt. Change that with --timeout-sec. When the receipt comes, it prints it with a Solscan link to the payment.

If the receipt does not come in time, the tool stops waiting but your payment stays with the nodes and keeps travelling for up to three days. Look up the recipient on Solscan once you are back online.

Tips

  • Each payment uses up the nonce value. Read the new one with solana nonce nonce.json before the next payment, or make a few nonce accounts ahead of time.
  • With no internet the tool cannot look up the tip account, so always pass --tip-account when you tip.
  • The more nodes around you, the faster it finds a way out.