@solana/web3.js 0.98.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -55
- package/lib/index.browser.esm.js +48 -24
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +101 -56
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +88 -64
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +42 -25
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +2 -2
- package/lib/index.iife.min.js.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +27 -45
- package/src/message.ts +9 -12
- package/src/transaction.ts +2 -2
- package/src/util/guarded-array-utils.ts +37 -0
- package/src/validator-info.ts +5 -4
- package/bin/bpf-sdk-install.sh +0 -38
- package/bin/localnet.sh +0 -161
- package/bpf-sdk/LICENSE +0 -13
- package/bpf-sdk/c/README.md +0 -44
- package/bpf-sdk/c/bpf.ld +0 -20
- package/bpf-sdk/c/bpf.mk +0 -249
- package/bpf-sdk/c/inc/deserialize_deprecated.h +0 -115
- package/bpf-sdk/c/inc/solana_sdk.h +0 -669
- package/bpf-sdk/c/inc/stdio.h +0 -4
- package/bpf-sdk/c/inc/stdlib.h +0 -2
- package/bpf-sdk/c/inc/string.h +0 -7
- package/bpf-sdk/c/inc/sys/param.h +0 -1
- package/bpf-sdk/c/inc/wchar.h +0 -1
- package/bpf-sdk/env.sh +0 -39
- package/bpf-sdk/rust/bpf.ld +0 -20
- package/bpf-sdk/rust/build.sh +0 -21
- package/bpf-sdk/rust/clean.sh +0 -17
- package/bpf-sdk/rust/xargo-build.sh +0 -29
- package/bpf-sdk/scripts/dump.sh +0 -45
- package/bpf-sdk/scripts/install.sh +0 -178
- package/bpf-sdk/scripts/objcopy.sh +0 -6
- package/bpf-sdk/scripts/package.sh +0 -19
- package/bpf-sdk/scripts/strip.sh +0 -23
- package/bpf-sdk/version.txt +0 -2
- package/doc/assets/css/main.css +0 -2660
- package/doc/assets/images/icons.png +0 -0
- package/doc/assets/images/icons@2x.png +0 -0
- package/doc/assets/images/widgets.png +0 -0
- package/doc/assets/images/widgets@2x.png +0 -0
- package/doc/assets/js/main.js +0 -248
- package/doc/assets/js/search.js +0 -1
- package/doc/classes/account.html +0 -244
- package/doc/classes/authorized.html +0 -234
- package/doc/classes/bpfloader.html +0 -267
- package/doc/classes/connection.html +0 -2354
- package/doc/classes/loader.html +0 -275
- package/doc/classes/lockup.html +0 -250
- package/doc/classes/message.html +0 -326
- package/doc/classes/nonceaccount.html +0 -233
- package/doc/classes/publickey.html +0 -411
- package/doc/classes/secp256k1program.html +0 -308
- package/doc/classes/stakeinstruction.html +0 -403
- package/doc/classes/stakeprogram.html +0 -503
- package/doc/classes/systeminstruction.html +0 -563
- package/doc/classes/systemprogram.html +0 -503
- package/doc/classes/transaction.html +0 -688
- package/doc/classes/transactioninstruction.html +0 -240
- package/doc/classes/validatorinfo.html +0 -279
- package/doc/classes/voteaccount.html +0 -331
- package/doc/index.html +0 -640
- package/doc/interfaces/feecalculator.html +0 -166
- package/doc/modules.html +0 -4682
- package/examples/README.md +0 -10
- package/examples/account.html +0 -24
- package/examples/account.js +0 -10
- package/examples/bpf-c-noop/.gitignore +0 -1
- package/examples/bpf-c-noop/makefile +0 -1
- package/examples/bpf-c-noop/src/noop/noop.c +0 -19
- package/examples/bpf-rust-noop/.gitignore +0 -3
- package/examples/bpf-rust-noop/Cargo.toml +0 -23
- package/examples/bpf-rust-noop/Xargo.toml +0 -2
- package/examples/bpf-rust-noop/src/lib.rs +0 -70
- package/examples/get-balance.html +0 -37
- package/examples/get-balance.js +0 -18
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html class="default no-js">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>SystemProgram | @solana/web3.js</title>
|
|
7
|
-
<meta name="description" content="Documentation for @solana/web3.js">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
|
-
<script async src="../assets/js/search.js" id="search-script"></script>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<header>
|
|
14
|
-
<div class="tsd-page-toolbar">
|
|
15
|
-
<div class="container">
|
|
16
|
-
<div class="table-wrap">
|
|
17
|
-
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
18
|
-
<div class="field">
|
|
19
|
-
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
20
|
-
<input id="tsd-search-field" type="text" />
|
|
21
|
-
</div>
|
|
22
|
-
<ul class="results">
|
|
23
|
-
<li class="state loading">Preparing search index...</li>
|
|
24
|
-
<li class="state failure">The search index is not available</li>
|
|
25
|
-
</ul>
|
|
26
|
-
<a href="../index.html" class="title">@solana/web3.js</a>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="table-cell" id="tsd-widgets">
|
|
29
|
-
<div id="tsd-filter">
|
|
30
|
-
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
31
|
-
<div class="tsd-filter-group">
|
|
32
|
-
<div class="tsd-select" id="tsd-filter-visibility">
|
|
33
|
-
<span class="tsd-select-label">All</span>
|
|
34
|
-
<ul class="tsd-select-list">
|
|
35
|
-
<li data-value="public">Public</li>
|
|
36
|
-
<li data-value="protected">Public/Protected</li>
|
|
37
|
-
<li data-value="private" class="selected">All</li>
|
|
38
|
-
</ul>
|
|
39
|
-
</div>
|
|
40
|
-
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
41
|
-
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
42
|
-
<input type="checkbox" id="tsd-filter-externals" checked />
|
|
43
|
-
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
<div class="tsd-page-title">
|
|
52
|
-
<div class="container">
|
|
53
|
-
<ul class="tsd-breadcrumb">
|
|
54
|
-
<li>
|
|
55
|
-
<a href="../modules.html">@solana/web3.js</a>
|
|
56
|
-
</li>
|
|
57
|
-
<li>
|
|
58
|
-
<a href="systemprogram.html">SystemProgram</a>
|
|
59
|
-
</li>
|
|
60
|
-
</ul>
|
|
61
|
-
<h1>Class SystemProgram</h1>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</header>
|
|
65
|
-
<div class="container container-main">
|
|
66
|
-
<div class="row">
|
|
67
|
-
<div class="col-8 col-content">
|
|
68
|
-
<section class="tsd-panel tsd-comment">
|
|
69
|
-
<div class="tsd-comment tsd-typography">
|
|
70
|
-
<div class="lead">
|
|
71
|
-
<p>Factory class for transactions to interact with the System program</p>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</section>
|
|
75
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
76
|
-
<h3>Hierarchy</h3>
|
|
77
|
-
<ul class="tsd-hierarchy">
|
|
78
|
-
<li>
|
|
79
|
-
<span class="target">SystemProgram</span>
|
|
80
|
-
</li>
|
|
81
|
-
</ul>
|
|
82
|
-
</section>
|
|
83
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
84
|
-
<h2>Index</h2>
|
|
85
|
-
<section class="tsd-panel tsd-index-panel">
|
|
86
|
-
<div class="tsd-index-content">
|
|
87
|
-
<section class="tsd-index-section ">
|
|
88
|
-
<h3>Accessors</h3>
|
|
89
|
-
<ul class="tsd-index-list">
|
|
90
|
-
<li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#programid" class="tsd-kind-icon">program<wbr>Id</a></li>
|
|
91
|
-
</ul>
|
|
92
|
-
</section>
|
|
93
|
-
<section class="tsd-index-section ">
|
|
94
|
-
<h3>Methods</h3>
|
|
95
|
-
<ul class="tsd-index-list">
|
|
96
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#allocate" class="tsd-kind-icon">allocate</a></li>
|
|
97
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#assign" class="tsd-kind-icon">assign</a></li>
|
|
98
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#createaccount" class="tsd-kind-icon">create<wbr>Account</a></li>
|
|
99
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#createaccountwithseed" class="tsd-kind-icon">create<wbr>Account<wbr>With<wbr>Seed</a></li>
|
|
100
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#createnonceaccount" class="tsd-kind-icon">create<wbr>Nonce<wbr>Account</a></li>
|
|
101
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#nonceadvance" class="tsd-kind-icon">nonce<wbr>Advance</a></li>
|
|
102
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#nonceauthorize" class="tsd-kind-icon">nonce<wbr>Authorize</a></li>
|
|
103
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#nonceinitialize" class="tsd-kind-icon">nonce<wbr>Initialize</a></li>
|
|
104
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#noncewithdraw" class="tsd-kind-icon">nonce<wbr>Withdraw</a></li>
|
|
105
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="systemprogram.html#transfer" class="tsd-kind-icon">transfer</a></li>
|
|
106
|
-
</ul>
|
|
107
|
-
</section>
|
|
108
|
-
</div>
|
|
109
|
-
</section>
|
|
110
|
-
</section>
|
|
111
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
112
|
-
<h2>Accessors</h2>
|
|
113
|
-
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
114
|
-
<a name="programid" class="tsd-anchor"></a>
|
|
115
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> program<wbr>Id</h3>
|
|
116
|
-
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
117
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> programId<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a></li>
|
|
118
|
-
</ul>
|
|
119
|
-
<ul class="tsd-descriptions">
|
|
120
|
-
<li class="tsd-description">
|
|
121
|
-
<aside class="tsd-sources">
|
|
122
|
-
<ul>
|
|
123
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L660">system-program.ts:660</a></li>
|
|
124
|
-
</ul>
|
|
125
|
-
</aside>
|
|
126
|
-
<div class="tsd-comment tsd-typography">
|
|
127
|
-
<div class="lead">
|
|
128
|
-
<p>Public key that identifies the System program</p>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
<h4 class="tsd-returns-title">Returns <a href="publickey.html" class="tsd-signature-type" data-tsd-kind="Class">PublicKey</a></h4>
|
|
132
|
-
</li>
|
|
133
|
-
</ul>
|
|
134
|
-
</section>
|
|
135
|
-
</section>
|
|
136
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
137
|
-
<h2>Methods</h2>
|
|
138
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
139
|
-
<a name="allocate" class="tsd-anchor"></a>
|
|
140
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> allocate</h3>
|
|
141
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
142
|
-
<li class="tsd-signature tsd-kind-icon">allocate<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#allocateparams" class="tsd-signature-type" data-tsd-kind="Type alias">AllocateParams</a><span class="tsd-signature-symbol"> | </span><a href="../modules.html#allocatewithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">AllocateWithSeedParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></li>
|
|
143
|
-
</ul>
|
|
144
|
-
<ul class="tsd-descriptions">
|
|
145
|
-
<li class="tsd-description">
|
|
146
|
-
<aside class="tsd-sources">
|
|
147
|
-
<ul>
|
|
148
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L922">system-program.ts:922</a></li>
|
|
149
|
-
</ul>
|
|
150
|
-
</aside>
|
|
151
|
-
<div class="tsd-comment tsd-typography">
|
|
152
|
-
<div class="lead">
|
|
153
|
-
<p>Generate a transaction instruction that allocates space in an account without funding</p>
|
|
154
|
-
</div>
|
|
155
|
-
</div>
|
|
156
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
157
|
-
<ul class="tsd-parameters">
|
|
158
|
-
<li>
|
|
159
|
-
<h5>params: <a href="../modules.html#allocateparams" class="tsd-signature-type" data-tsd-kind="Type alias">AllocateParams</a><span class="tsd-signature-symbol"> | </span><a href="../modules.html#allocatewithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">AllocateWithSeedParams</a></h5>
|
|
160
|
-
</li>
|
|
161
|
-
</ul>
|
|
162
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
163
|
-
</li>
|
|
164
|
-
</ul>
|
|
165
|
-
</section>
|
|
166
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
167
|
-
<a name="assign" class="tsd-anchor"></a>
|
|
168
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> assign</h3>
|
|
169
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
170
|
-
<li class="tsd-signature tsd-kind-icon">assign<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#assignparams" class="tsd-signature-type" data-tsd-kind="Type alias">AssignParams</a><span class="tsd-signature-symbol"> | </span><a href="../modules.html#assignwithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">AssignWithSeedParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></li>
|
|
171
|
-
</ul>
|
|
172
|
-
<ul class="tsd-descriptions">
|
|
173
|
-
<li class="tsd-description">
|
|
174
|
-
<aside class="tsd-sources">
|
|
175
|
-
<ul>
|
|
176
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L724">system-program.ts:724</a></li>
|
|
177
|
-
</ul>
|
|
178
|
-
</aside>
|
|
179
|
-
<div class="tsd-comment tsd-typography">
|
|
180
|
-
<div class="lead">
|
|
181
|
-
<p>Generate a transaction instruction that assigns an account to a program</p>
|
|
182
|
-
</div>
|
|
183
|
-
</div>
|
|
184
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
185
|
-
<ul class="tsd-parameters">
|
|
186
|
-
<li>
|
|
187
|
-
<h5>params: <a href="../modules.html#assignparams" class="tsd-signature-type" data-tsd-kind="Type alias">AssignParams</a><span class="tsd-signature-symbol"> | </span><a href="../modules.html#assignwithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">AssignWithSeedParams</a></h5>
|
|
188
|
-
</li>
|
|
189
|
-
</ul>
|
|
190
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
191
|
-
</li>
|
|
192
|
-
</ul>
|
|
193
|
-
</section>
|
|
194
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
195
|
-
<a name="createaccount" class="tsd-anchor"></a>
|
|
196
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> create<wbr>Account</h3>
|
|
197
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
198
|
-
<li class="tsd-signature tsd-kind-icon">create<wbr>Account<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#createaccountparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateAccountParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></li>
|
|
199
|
-
</ul>
|
|
200
|
-
<ul class="tsd-descriptions">
|
|
201
|
-
<li class="tsd-description">
|
|
202
|
-
<aside class="tsd-sources">
|
|
203
|
-
<ul>
|
|
204
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L667">system-program.ts:667</a></li>
|
|
205
|
-
</ul>
|
|
206
|
-
</aside>
|
|
207
|
-
<div class="tsd-comment tsd-typography">
|
|
208
|
-
<div class="lead">
|
|
209
|
-
<p>Generate a transaction instruction that creates a new account</p>
|
|
210
|
-
</div>
|
|
211
|
-
</div>
|
|
212
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
213
|
-
<ul class="tsd-parameters">
|
|
214
|
-
<li>
|
|
215
|
-
<h5>params: <a href="../modules.html#createaccountparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateAccountParams</a></h5>
|
|
216
|
-
</li>
|
|
217
|
-
</ul>
|
|
218
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
219
|
-
</li>
|
|
220
|
-
</ul>
|
|
221
|
-
</section>
|
|
222
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
223
|
-
<a name="createaccountwithseed" class="tsd-anchor"></a>
|
|
224
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> create<wbr>Account<wbr>With<wbr>Seed</h3>
|
|
225
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
226
|
-
<li class="tsd-signature tsd-kind-icon">create<wbr>Account<wbr>With<wbr>Seed<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#createaccountwithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateAccountWithSeedParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></li>
|
|
227
|
-
</ul>
|
|
228
|
-
<ul class="tsd-descriptions">
|
|
229
|
-
<li class="tsd-description">
|
|
230
|
-
<aside class="tsd-sources">
|
|
231
|
-
<ul>
|
|
232
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L757">system-program.ts:757</a></li>
|
|
233
|
-
</ul>
|
|
234
|
-
</aside>
|
|
235
|
-
<div class="tsd-comment tsd-typography">
|
|
236
|
-
<div class="lead">
|
|
237
|
-
<p>Generate a transaction instruction that creates a new account at
|
|
238
|
-
an address generated with <code>from</code>, a seed, and programId</p>
|
|
239
|
-
</div>
|
|
240
|
-
</div>
|
|
241
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
242
|
-
<ul class="tsd-parameters">
|
|
243
|
-
<li>
|
|
244
|
-
<h5>params: <a href="../modules.html#createaccountwithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateAccountWithSeedParams</a></h5>
|
|
245
|
-
</li>
|
|
246
|
-
</ul>
|
|
247
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
248
|
-
</li>
|
|
249
|
-
</ul>
|
|
250
|
-
</section>
|
|
251
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
252
|
-
<a name="createnonceaccount" class="tsd-anchor"></a>
|
|
253
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> create<wbr>Nonce<wbr>Account</h3>
|
|
254
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
255
|
-
<li class="tsd-signature tsd-kind-icon">create<wbr>Nonce<wbr>Account<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#createnonceaccountparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateNonceAccountParams</a><span class="tsd-signature-symbol"> | </span><a href="../modules.html#createnonceaccountwithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateNonceAccountWithSeedParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></li>
|
|
256
|
-
</ul>
|
|
257
|
-
<ul class="tsd-descriptions">
|
|
258
|
-
<li class="tsd-description">
|
|
259
|
-
<aside class="tsd-sources">
|
|
260
|
-
<ul>
|
|
261
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L786">system-program.ts:786</a></li>
|
|
262
|
-
</ul>
|
|
263
|
-
</aside>
|
|
264
|
-
<div class="tsd-comment tsd-typography">
|
|
265
|
-
<div class="lead">
|
|
266
|
-
<p>Generate a transaction that creates a new Nonce account</p>
|
|
267
|
-
</div>
|
|
268
|
-
</div>
|
|
269
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
270
|
-
<ul class="tsd-parameters">
|
|
271
|
-
<li>
|
|
272
|
-
<h5>params: <a href="../modules.html#createnonceaccountparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateNonceAccountParams</a><span class="tsd-signature-symbol"> | </span><a href="../modules.html#createnonceaccountwithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">CreateNonceAccountWithSeedParams</a></h5>
|
|
273
|
-
</li>
|
|
274
|
-
</ul>
|
|
275
|
-
<h4 class="tsd-returns-title">Returns <a href="transaction.html" class="tsd-signature-type" data-tsd-kind="Class">Transaction</a></h4>
|
|
276
|
-
</li>
|
|
277
|
-
</ul>
|
|
278
|
-
</section>
|
|
279
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
280
|
-
<a name="nonceadvance" class="tsd-anchor"></a>
|
|
281
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> nonce<wbr>Advance</h3>
|
|
282
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
283
|
-
<li class="tsd-signature tsd-kind-icon">nonce<wbr>Advance<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#advancenonceparams" class="tsd-signature-type" data-tsd-kind="Type alias">AdvanceNonceParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></li>
|
|
284
|
-
</ul>
|
|
285
|
-
<ul class="tsd-descriptions">
|
|
286
|
-
<li class="tsd-description">
|
|
287
|
-
<aside class="tsd-sources">
|
|
288
|
-
<ul>
|
|
289
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L852">system-program.ts:852</a></li>
|
|
290
|
-
</ul>
|
|
291
|
-
</aside>
|
|
292
|
-
<div class="tsd-comment tsd-typography">
|
|
293
|
-
<div class="lead">
|
|
294
|
-
<p>Generate an instruction to advance the nonce in a Nonce account</p>
|
|
295
|
-
</div>
|
|
296
|
-
</div>
|
|
297
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
298
|
-
<ul class="tsd-parameters">
|
|
299
|
-
<li>
|
|
300
|
-
<h5>params: <a href="../modules.html#advancenonceparams" class="tsd-signature-type" data-tsd-kind="Type alias">AdvanceNonceParams</a></h5>
|
|
301
|
-
</li>
|
|
302
|
-
</ul>
|
|
303
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
304
|
-
</li>
|
|
305
|
-
</ul>
|
|
306
|
-
</section>
|
|
307
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
308
|
-
<a name="nonceauthorize" class="tsd-anchor"></a>
|
|
309
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> nonce<wbr>Authorize</h3>
|
|
310
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
311
|
-
<li class="tsd-signature tsd-kind-icon">nonce<wbr>Authorize<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#authorizenonceparams" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizeNonceParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></li>
|
|
312
|
-
</ul>
|
|
313
|
-
<ul class="tsd-descriptions">
|
|
314
|
-
<li class="tsd-description">
|
|
315
|
-
<aside class="tsd-sources">
|
|
316
|
-
<ul>
|
|
317
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L903">system-program.ts:903</a></li>
|
|
318
|
-
</ul>
|
|
319
|
-
</aside>
|
|
320
|
-
<div class="tsd-comment tsd-typography">
|
|
321
|
-
<div class="lead">
|
|
322
|
-
<p>Generate a transaction instruction that authorizes a new PublicKey as the authority
|
|
323
|
-
on a Nonce account.</p>
|
|
324
|
-
</div>
|
|
325
|
-
</div>
|
|
326
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
327
|
-
<ul class="tsd-parameters">
|
|
328
|
-
<li>
|
|
329
|
-
<h5>params: <a href="../modules.html#authorizenonceparams" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizeNonceParams</a></h5>
|
|
330
|
-
</li>
|
|
331
|
-
</ul>
|
|
332
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
333
|
-
</li>
|
|
334
|
-
</ul>
|
|
335
|
-
</section>
|
|
336
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
337
|
-
<a name="nonceinitialize" class="tsd-anchor"></a>
|
|
338
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> nonce<wbr>Initialize</h3>
|
|
339
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
340
|
-
<li class="tsd-signature tsd-kind-icon">nonce<wbr>Initialize<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#initializenonceparams" class="tsd-signature-type" data-tsd-kind="Type alias">InitializeNonceParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></li>
|
|
341
|
-
</ul>
|
|
342
|
-
<ul class="tsd-descriptions">
|
|
343
|
-
<li class="tsd-description">
|
|
344
|
-
<aside class="tsd-sources">
|
|
345
|
-
<ul>
|
|
346
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L826">system-program.ts:826</a></li>
|
|
347
|
-
</ul>
|
|
348
|
-
</aside>
|
|
349
|
-
<div class="tsd-comment tsd-typography">
|
|
350
|
-
<div class="lead">
|
|
351
|
-
<p>Generate an instruction to initialize a Nonce account</p>
|
|
352
|
-
</div>
|
|
353
|
-
</div>
|
|
354
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
355
|
-
<ul class="tsd-parameters">
|
|
356
|
-
<li>
|
|
357
|
-
<h5>params: <a href="../modules.html#initializenonceparams" class="tsd-signature-type" data-tsd-kind="Type alias">InitializeNonceParams</a></h5>
|
|
358
|
-
</li>
|
|
359
|
-
</ul>
|
|
360
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
361
|
-
</li>
|
|
362
|
-
</ul>
|
|
363
|
-
</section>
|
|
364
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
365
|
-
<a name="noncewithdraw" class="tsd-anchor"></a>
|
|
366
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> nonce<wbr>Withdraw</h3>
|
|
367
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
368
|
-
<li class="tsd-signature tsd-kind-icon">nonce<wbr>Withdraw<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#withdrawnonceparams" class="tsd-signature-type" data-tsd-kind="Type alias">WithdrawNonceParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></li>
|
|
369
|
-
</ul>
|
|
370
|
-
<ul class="tsd-descriptions">
|
|
371
|
-
<li class="tsd-description">
|
|
372
|
-
<aside class="tsd-sources">
|
|
373
|
-
<ul>
|
|
374
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L874">system-program.ts:874</a></li>
|
|
375
|
-
</ul>
|
|
376
|
-
</aside>
|
|
377
|
-
<div class="tsd-comment tsd-typography">
|
|
378
|
-
<div class="lead">
|
|
379
|
-
<p>Generate a transaction instruction that withdraws lamports from a Nonce account</p>
|
|
380
|
-
</div>
|
|
381
|
-
</div>
|
|
382
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
383
|
-
<ul class="tsd-parameters">
|
|
384
|
-
<li>
|
|
385
|
-
<h5>params: <a href="../modules.html#withdrawnonceparams" class="tsd-signature-type" data-tsd-kind="Type alias">WithdrawNonceParams</a></h5>
|
|
386
|
-
</li>
|
|
387
|
-
</ul>
|
|
388
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
389
|
-
</li>
|
|
390
|
-
</ul>
|
|
391
|
-
</section>
|
|
392
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
393
|
-
<a name="transfer" class="tsd-anchor"></a>
|
|
394
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> transfer</h3>
|
|
395
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
396
|
-
<li class="tsd-signature tsd-kind-icon">transfer<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../modules.html#transferparams" class="tsd-signature-type" data-tsd-kind="Type alias">TransferParams</a><span class="tsd-signature-symbol"> | </span><a href="../modules.html#transferwithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">TransferWithSeedParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></li>
|
|
397
|
-
</ul>
|
|
398
|
-
<ul class="tsd-descriptions">
|
|
399
|
-
<li class="tsd-description">
|
|
400
|
-
<aside class="tsd-sources">
|
|
401
|
-
<ul>
|
|
402
|
-
<li>Defined in <a href="https://github.com/solana-labs/solana-web3.js/blob/d5b2a1b/src/system-program.ts#L688">system-program.ts:688</a></li>
|
|
403
|
-
</ul>
|
|
404
|
-
</aside>
|
|
405
|
-
<div class="tsd-comment tsd-typography">
|
|
406
|
-
<div class="lead">
|
|
407
|
-
<p>Generate a transaction instruction that transfers lamports from one account to another</p>
|
|
408
|
-
</div>
|
|
409
|
-
</div>
|
|
410
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
411
|
-
<ul class="tsd-parameters">
|
|
412
|
-
<li>
|
|
413
|
-
<h5>params: <a href="../modules.html#transferparams" class="tsd-signature-type" data-tsd-kind="Type alias">TransferParams</a><span class="tsd-signature-symbol"> | </span><a href="../modules.html#transferwithseedparams" class="tsd-signature-type" data-tsd-kind="Type alias">TransferWithSeedParams</a></h5>
|
|
414
|
-
</li>
|
|
415
|
-
</ul>
|
|
416
|
-
<h4 class="tsd-returns-title">Returns <a href="transactioninstruction.html" class="tsd-signature-type" data-tsd-kind="Class">TransactionInstruction</a></h4>
|
|
417
|
-
</li>
|
|
418
|
-
</ul>
|
|
419
|
-
</section>
|
|
420
|
-
</section>
|
|
421
|
-
</div>
|
|
422
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
423
|
-
<nav class="tsd-navigation primary">
|
|
424
|
-
<ul>
|
|
425
|
-
<li class=" ">
|
|
426
|
-
<a href="../modules.html">Exports</a>
|
|
427
|
-
</li>
|
|
428
|
-
</ul>
|
|
429
|
-
</nav>
|
|
430
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
431
|
-
<ul class="before-current">
|
|
432
|
-
</ul>
|
|
433
|
-
<ul class="current">
|
|
434
|
-
<li class="current tsd-kind-class">
|
|
435
|
-
<a href="systemprogram.html" class="tsd-kind-icon">System<wbr>Program</a>
|
|
436
|
-
<ul>
|
|
437
|
-
<li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-static">
|
|
438
|
-
<a href="systemprogram.html#programid" class="tsd-kind-icon">program<wbr>Id</a>
|
|
439
|
-
</li>
|
|
440
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
441
|
-
<a href="systemprogram.html#allocate" class="tsd-kind-icon">allocate</a>
|
|
442
|
-
</li>
|
|
443
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
444
|
-
<a href="systemprogram.html#assign" class="tsd-kind-icon">assign</a>
|
|
445
|
-
</li>
|
|
446
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
447
|
-
<a href="systemprogram.html#createaccount" class="tsd-kind-icon">create<wbr>Account</a>
|
|
448
|
-
</li>
|
|
449
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
450
|
-
<a href="systemprogram.html#createaccountwithseed" class="tsd-kind-icon">create<wbr>Account<wbr>With<wbr>Seed</a>
|
|
451
|
-
</li>
|
|
452
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
453
|
-
<a href="systemprogram.html#createnonceaccount" class="tsd-kind-icon">create<wbr>Nonce<wbr>Account</a>
|
|
454
|
-
</li>
|
|
455
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
456
|
-
<a href="systemprogram.html#nonceadvance" class="tsd-kind-icon">nonce<wbr>Advance</a>
|
|
457
|
-
</li>
|
|
458
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
459
|
-
<a href="systemprogram.html#nonceauthorize" class="tsd-kind-icon">nonce<wbr>Authorize</a>
|
|
460
|
-
</li>
|
|
461
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
462
|
-
<a href="systemprogram.html#nonceinitialize" class="tsd-kind-icon">nonce<wbr>Initialize</a>
|
|
463
|
-
</li>
|
|
464
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
465
|
-
<a href="systemprogram.html#noncewithdraw" class="tsd-kind-icon">nonce<wbr>Withdraw</a>
|
|
466
|
-
</li>
|
|
467
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
468
|
-
<a href="systemprogram.html#transfer" class="tsd-kind-icon">transfer</a>
|
|
469
|
-
</li>
|
|
470
|
-
</ul>
|
|
471
|
-
</li>
|
|
472
|
-
</ul>
|
|
473
|
-
<ul class="after-current">
|
|
474
|
-
</ul>
|
|
475
|
-
</nav>
|
|
476
|
-
</div>
|
|
477
|
-
</div>
|
|
478
|
-
</div>
|
|
479
|
-
<footer class="with-border-bottom">
|
|
480
|
-
<div class="container">
|
|
481
|
-
<h2>Legend</h2>
|
|
482
|
-
<div class="tsd-legend-group">
|
|
483
|
-
<ul class="tsd-legend">
|
|
484
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
485
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
486
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
487
|
-
</ul>
|
|
488
|
-
<ul class="tsd-legend">
|
|
489
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
490
|
-
</ul>
|
|
491
|
-
<ul class="tsd-legend">
|
|
492
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
493
|
-
</ul>
|
|
494
|
-
</div>
|
|
495
|
-
</div>
|
|
496
|
-
</footer>
|
|
497
|
-
<div class="container tsd-generator">
|
|
498
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
499
|
-
</div>
|
|
500
|
-
<div class="overlay"></div>
|
|
501
|
-
<script src="../assets/js/main.js"></script>
|
|
502
|
-
</body>
|
|
503
|
-
</html>
|