Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored May 5, 2024
0 parents commit c1f5ec3
Show file tree
Hide file tree
Showing 98 changed files with 5,029 additions and 0 deletions.
33 changes: 33 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="VuePress 2.0.0-beta.35">
<style>
:root {
--c-bg: #fff;
}
html.dark {
--c-bg: #22272e;
}
html, body {
background-color: var(--c-bg);
}
</style>
<script>
const userMode = localStorage.getItem('vuepress-color-scheme');
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
document.documentElement.classList.toggle('dark', true);
}
</script>
<title>Solana Development With Go</title><meta name="description" content="">
<link rel="modulepreload" href="/solana-go-sdk/assets/app.aa4fcc9f.js"><link rel="modulepreload" href="/solana-go-sdk/assets/404.html.e275e9a9.js"><link rel="modulepreload" href="/solana-go-sdk/assets/404.html.ca9a1c30.js">
<link rel="stylesheet" href="/solana-go-sdk/assets/style.8cbb8e11.css">
</head>
<body>
<div id="app"><!--[--><div class="theme-container"><div class="theme-default-content"><h1>404</h1><blockquote>Looks like we&#39;ve got some broken links.</blockquote><a href="/solana-go-sdk/" class="">Take me home</a></div></div><!----><!--]--></div>
<script type="module" src="/solana-go-sdk/assets/app.aa4fcc9f.js" defer></script>
</body>
</html>
104 changes: 104 additions & 0 deletions advanced/durable-nonce/create-nonce-account.html

Large diffs are not rendered by default.

85 changes: 85 additions & 0 deletions advanced/durable-nonce/get-nonce-account-by-owner.html

Large diffs are not rendered by default.

84 changes: 84 additions & 0 deletions advanced/durable-nonce/get-nonce-account.html

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions advanced/durable-nonce/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="VuePress 2.0.0-beta.35">
<style>
:root {
--c-bg: #fff;
}
html.dark {
--c-bg: #22272e;
}
html, body {
background-color: var(--c-bg);
}
</style>
<script>
const userMode = localStorage.getItem('vuepress-color-scheme');
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
document.documentElement.classList.toggle('dark', true);
}
</script>
<title>Durable Nonce | Solana Development With Go</title><meta name="description" content="">
<link rel="modulepreload" href="/solana-go-sdk/assets/app.aa4fcc9f.js"><link rel="modulepreload" href="/solana-go-sdk/assets/index.html.53b060d9.js"><link rel="modulepreload" href="/solana-go-sdk/assets/index.html.ab4ba558.js">
<link rel="stylesheet" href="/solana-go-sdk/assets/style.8cbb8e11.css">
</head>
<body>
<div id="app"><!--[--><div class="theme-container"><!--[--><header ref_key="navbar" class="navbar"><div class="toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0"><div class="icon" aria-hidden="true"><span></span><span></span><span></span></div></div><span><a href="/solana-go-sdk/" class=""><!----><span class="site-name">Solana Development With Go</span></a></span><div class="navbar-items-wrapper" style=""><!--[--><!--]--><nav class="navbar-items can-hide"><!--[--><div class="navbar-item"><a class="external-link" href="https://github.com/blocto/solana-go-sdk" rel="noopener noreferrer" target="_blank" aria-label="GitHub"><!--[--><!--]--> GitHub <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><button class="toggle-dark-button" title="toggle dark mode"><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button><!----></div></header><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar"><nav class="navbar-items"><!--[--><div class="navbar-item"><a class="external-link" href="https://github.com/blocto/solana-go-sdk" rel="noopener noreferrer" target="_blank" aria-label="GitHub"><!--[--><!--]--> GitHub <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><ul class="sidebar-items"><!--[--><li><p tabindex="0" class="sidebar-item sidebar-heading">Tour <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><p tabindex="0" class="sidebar-item">Basic <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a href="/solana-go-sdk/tour/create-account" class="sidebar-item" aria-label="Create Account"><!--[--><!--]--> Create Account <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/tour/request-airdrop" class="sidebar-item" aria-label="Request Airdrop"><!--[--><!--]--> Request Airdrop <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/tour/get-sol-balance" class="sidebar-item" aria-label="Get Balance"><!--[--><!--]--> Get Balance <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/tour/transfer" class="sidebar-item" aria-label="Transfer"><!--[--><!--]--> Transfer <!--[--><!--]--></a><!----></li><!--]--></ul><!--]--></li><li><p tabindex="0" class="sidebar-item">Token <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a href="/solana-go-sdk/tour/create-mint" class="sidebar-item" aria-label="Create Mint"><!--[--><!--]--> Create Mint <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/tour/get-mint" class="sidebar-item" aria-label="Get Mint"><!--[--><!--]--> Get Mint <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/tour/create-token-account" class="sidebar-item" aria-label="Create Token Account"><!--[--><!--]--> Create Token Account <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/tour/get-token-account" class="sidebar-item" aria-label="Get Token Account"><!--[--><!--]--> Get Token Account <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/tour/mint-to" class="sidebar-item" aria-label="Mint To"><!--[--><!--]--> Mint To <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/tour/get-token-balance" class="sidebar-item" aria-label="Get Balance"><!--[--><!--]--> Get Balance <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/tour/token-transfer" class="sidebar-item" aria-label="Transfer"><!--[--><!--]--> Transfer <!--[--><!--]--></a><!----></li><!--]--></ul><!--]--></li><!--]--></ul><!--]--></li><li><p tabindex="0" class="sidebar-item sidebar-heading">NFT <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a href="/solana-go-sdk/nft/mint-a-nft" class="sidebar-item" aria-label="Mint a NFT"><!--[--><!--]--> Mint a NFT <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/nft/get-metadata" class="sidebar-item" aria-label="Get Metadata"><!--[--><!--]--> Get Metadata <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/nft/sign-metadata" class="sidebar-item" aria-label="Sign Metadata"><!--[--><!--]--> Sign Metadata <!--[--><!--]--></a><!----></li><!--]--></ul><!--]--></li><li><p tabindex="0" class="sidebar-item sidebar-heading">Advanced <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a href="/solana-go-sdk/advanced/memo" class="sidebar-item" aria-label="Add Memo"><!--[--><!--]--> Add Memo <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/advanced/durable-nonce/README.md" class="sidebar-item" aria-label="Durable Nonce"><!--[--><!--]--> Durable Nonce <!--[--><!--]--></a><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a href="/solana-go-sdk/advanced/durable-nonce/create-nonce-account" class="sidebar-item" aria-label="Create Nonce Account"><!--[--><!--]--> Create Nonce Account <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/advanced/durable-nonce/get-nonce-account" class="sidebar-item" aria-label="Get Nonce Account"><!--[--><!--]--> Get Nonce Account <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/advanced/durable-nonce/use-nonce" class="sidebar-item" aria-label="Use Nonce"><!--[--><!--]--> Use Nonce <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/advanced/durable-nonce/upgrade-nonce" class="sidebar-item" aria-label="Upgrade Nonce"><!--[--><!--]--> Upgrade Nonce <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/advanced/durable-nonce/get-nonce-account-by-owner" class="sidebar-item" aria-label="Get Nonce Account By Owner"><!--[--><!--]--> Get Nonce Account By Owner <!--[--><!--]--></a><!----></li><!--]--></ul><!--]--></li><!--]--></ul><!--]--></li><li><p tabindex="0" class="sidebar-item sidebar-heading">RPC <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a href="/solana-go-sdk/rpc/get-signatures-for-address" class="sidebar-item" aria-label="Get Signatures For Address"><!--[--><!--]--> Get Signatures For Address <!--[--><!--]--></a><!----></li><!--]--></ul><!--]--></li><li><p tabindex="0" class="sidebar-item sidebar-heading">Program <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><p tabindex="0" class="sidebar-item">101 <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a href="/solana-go-sdk/programs/101/hello" class="sidebar-item" aria-label="Hello"><!--[--><!--]--> Hello <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/programs/101/accounts" class="sidebar-item" aria-label="Accounts"><!--[--><!--]--> Accounts <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/programs/101/data" class="sidebar-item" aria-label="Data"><!--[--><!--]--> Data <!--[--><!--]--></a><!----></li><!--]--></ul><!--]--></li><li><p tabindex="0" class="sidebar-item">Stake <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a href="/solana-go-sdk/programs/stake/initialize-account" class="sidebar-item" aria-label="Initialize Account"><!--[--><!--]--> Initialize Account <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/programs/stake/delegate" class="sidebar-item" aria-label="Delegate (stake)"><!--[--><!--]--> Delegate (stake) <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/programs/stake/deactivate" class="sidebar-item" aria-label="Deactivate (unstake)"><!--[--><!--]--> Deactivate (unstake) <!--[--><!--]--></a><!----></li><li><a href="/solana-go-sdk/programs/stake/withdraw" class="sidebar-item" aria-label="Withdraw"><!--[--><!--]--> Withdraw <!--[--><!--]--></a><!----></li><!--]--></ul><!--]--></li><!--]--></ul><!--]--></li><!--]--></ul><!--[--><!--]--></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><h1 id="durable-nonce" tabindex="-1"><a class="header-anchor" href="#durable-nonce" aria-hidden="true">#</a> Durable Nonce</h1><p>A transaction includes a recent blockhash. The recent blockhash will expire after 150 blocks. (arpox. 2 min) To get rid of it, you can use durable nonce.</p><h2 id="mechanism" tabindex="-1"><a class="header-anchor" href="#mechanism" aria-hidden="true">#</a> Mechanism</h2><p>We can trigger the mechanism by</p><ol><li>use the <code>nonce</code> which stored in a nonce account as a recent blockhash</li><li>make <code>nonce advance</code> instruction is the first instruciton</li></ol><!--]--></div><footer class="page-meta"><!----><div class="meta-item last-updated"><span class="meta-item-label">Last Updated: </span><!----></div><div class="meta-item contributors"><span class="meta-item-label">Contributors: </span><span class="meta-item-info"><!--[--><!--[--><span class="contributor" title="email: [email protected]">yihau</span><!----><!--]--><!--]--></span></div></footer><!----><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
<script type="module" src="/solana-go-sdk/assets/app.aa4fcc9f.js" defer></script>
</body>
</html>
Loading

0 comments on commit c1f5ec3

Please sign in to comment.