From 09a0dc17f82921c2cc218c04753c51d71cbc74d2 Mon Sep 17 00:00:00 2001 From: Sal Samani Date: Fri, 18 Oct 2024 12:16:42 +1100 Subject: [PATCH] correct difficulty to match slug, corrected typo, changed to official faucet, fixed heading (in MD if 2 headings have the same name, the anchor tag will point to first link --- .../advanced/introduction-to-durable-nonces.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/content/guides/advanced/introduction-to-durable-nonces.md b/content/guides/advanced/introduction-to-durable-nonces.md index 536e1d440..744cb4be1 100644 --- a/content/guides/advanced/introduction-to-durable-nonces.md +++ b/content/guides/advanced/introduction-to-durable-nonces.md @@ -1,6 +1,6 @@ --- date: 2024-06-29T00:00:00Z -difficulty: intermediate +difficulty: advanced title: "Durable & Offline Transaction Signing using Nonces" description: "One-stop shop for Solana's Durable Nonces: an easy way to power your Solana @@ -219,7 +219,7 @@ AkrQn5QWLACSP5EMT2R1ZHyKaGWVFrDHJ6NL89HKtwjQ This is the base58 encoded hash that will be used in place of recent blockhashes while signing a transaction. -### Displace Nonce Account +### Display Nonce Account We can inspect the details of a Nonce Account in a prettier formatted version @@ -479,19 +479,21 @@ Voila, we've gone through a very real-life use case of Durable Nonces. Now let's see how to use them in transactions using JavaScript and the [`@solana/web3.js`](https://solana-labs.github.io/solana-web3.js/) package. -## Durable Nonces with Solana `web3.js` +## Durable Nonces with Solana Web3.js We'll use a similar example of making a simple transfer to demonstrate how to send transactions using durable nonces. -### Create Nonce Authority +### Create Nonce Authority (Web3.js) ```ts const nonceAuthKP = Keypair.generate(); -// airdrop some SOL into this account from https://solfaucet.com/ ``` -### Create Nonce Accounts +_If you need SOL, you can use the +[faucet.solana.com](https://faucet.solana.com/)_ to get some. + +### Create Nonce Accounts (Web3.js) ```ts const nonceKeypair = Keypair.generate(); @@ -533,7 +535,7 @@ const sig = await sendAndConfirmRawTransaction( console.log("Nonce initiated: ", sig); ``` -### Fetch Initialised Nonce Account +### Fetch Nonce Account (Web3.js) ```ts const accountInfo = await connection.getAccountInfo(nonceKeypair.publicKey);