algosdk 1.20.0 → 1.21.0
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 +2 -2
- package/dist/browser/algosdk.min.js.map +1 -1
- package/dist/cjs/src/client/algod.js +21 -0
- package/dist/cjs/src/client/algod.js.map +1 -1
- package/dist/esm/src/client/algod.js +21 -0
- package/dist/esm/src/client/algod.js.map +1 -1
- package/dist/types/src/client/algod.d.ts +21 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const { default: HTTPClient } = require('./client');
|
|
2
2
|
const { setSendTransactionHeaders } = require('./v2/algod/sendRawTransaction');
|
|
3
|
+
/** @deprecated v1 algod APIs are deprecated, please use the v2 client */
|
|
3
4
|
function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 4180, headers = {}) {
|
|
4
5
|
// workaround to allow backwards compatibility for multiple headers
|
|
5
6
|
let tokenHeader = token;
|
|
@@ -12,6 +13,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
12
13
|
* Takes an object and convert its note field to Buffer, if exist.
|
|
13
14
|
* @param o
|
|
14
15
|
* @returns {*}
|
|
16
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
15
17
|
*/
|
|
16
18
|
function noteb64ToNote(o) {
|
|
17
19
|
if (!(o.noteb64 === undefined || o.noteb64 === null)) {
|
|
@@ -24,6 +26,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
24
26
|
* status retrieves the StatusResponse from the running node
|
|
25
27
|
* @param headerObj, optional
|
|
26
28
|
* @returns {Promise<*>}
|
|
29
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
27
30
|
*/
|
|
28
31
|
this.status = async (headerObj = {}) => {
|
|
29
32
|
const res = await c.get('/v1/status', {}, headerObj);
|
|
@@ -33,6 +36,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
33
36
|
* healthCheck returns an empty object iff the node is running
|
|
34
37
|
* @param headerObj, optional
|
|
35
38
|
* @returns {Promise<*>}
|
|
39
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
36
40
|
*/
|
|
37
41
|
this.healthCheck = async (headerObj = {}) => {
|
|
38
42
|
const res = await c.get('/health', {}, headerObj);
|
|
@@ -47,6 +51,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
47
51
|
* @param roundNumber
|
|
48
52
|
* @param headerObj, optional
|
|
49
53
|
* @returns {Promise<*>}
|
|
54
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
50
55
|
*/
|
|
51
56
|
this.statusAfterBlock = async (roundNumber, headerObj = {}) => {
|
|
52
57
|
if (!Number.isInteger(roundNumber))
|
|
@@ -60,6 +65,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
60
65
|
* @param maxTxns - number
|
|
61
66
|
* @param headerObj, optional
|
|
62
67
|
* @returns {Promise<*>}
|
|
68
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
63
69
|
*/
|
|
64
70
|
this.pendingTransactions = async (maxTxns, headerObj = {}) => {
|
|
65
71
|
if (!Number.isInteger(maxTxns))
|
|
@@ -77,6 +83,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
77
83
|
* versions retrieves the VersionResponse from the running node
|
|
78
84
|
* @param headerObj, optional
|
|
79
85
|
* @returns {Promise<*>}
|
|
86
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
80
87
|
*/
|
|
81
88
|
this.versions = async (headerObj = {}) => {
|
|
82
89
|
const res = await c.get('/versions', {}, headerObj);
|
|
@@ -86,6 +93,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
86
93
|
* LedgerSupply gets the supply details for the specified node's Ledger
|
|
87
94
|
* @param headerObj, optional
|
|
88
95
|
* @returns {Promise<*>}
|
|
96
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
89
97
|
*/
|
|
90
98
|
this.ledgerSupply = async (headerObj = {}) => {
|
|
91
99
|
const res = await c.get('/v1/ledger/supply', {}, headerObj);
|
|
@@ -99,6 +107,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
99
107
|
* @param maxTxns - number, optional
|
|
100
108
|
* @param headers, optional
|
|
101
109
|
* @returns {Promise<*>}
|
|
110
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
102
111
|
*/
|
|
103
112
|
this.transactionByAddress = async (addr, first = null, last = null, maxTxns = null, headerObj = {}) => {
|
|
104
113
|
if (first !== null && !Number.isInteger(first)) {
|
|
@@ -124,6 +133,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
124
133
|
* @param maxTxns - number, optional
|
|
125
134
|
* @param headerObj, optional
|
|
126
135
|
* @returns {Promise<*>}
|
|
136
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
127
137
|
*/
|
|
128
138
|
this.transactionByAddressAndDate = async (addr, fromDate, toDate, maxTxns = null, headerObj = {}) => {
|
|
129
139
|
const res = await c.get(`/v1/account/${addr}/transactions`, { fromDate, toDate, max: maxTxns }, headerObj);
|
|
@@ -140,6 +150,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
140
150
|
* @param txid
|
|
141
151
|
* @param headerObj, optional
|
|
142
152
|
* @returns {Promise<*>}
|
|
153
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
143
154
|
*/
|
|
144
155
|
this.transactionById = async (txid, headerObj = {}) => {
|
|
145
156
|
const res = await c.get(`/v1/transaction/${txid}`, {}, headerObj);
|
|
@@ -154,6 +165,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
154
165
|
* @param txid
|
|
155
166
|
* @param headerObj, optional
|
|
156
167
|
* @returns {Promise<*>}
|
|
168
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
157
169
|
*/
|
|
158
170
|
this.transactionInformation = async (addr, txid, headerObj = {}) => {
|
|
159
171
|
const res = await c.get(`/v1/account/${addr}/transaction/${txid}`, {}, headerObj);
|
|
@@ -167,6 +179,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
167
179
|
* @param txid
|
|
168
180
|
* @param headerObj, optional
|
|
169
181
|
* @returns {Promise<*>}
|
|
182
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
170
183
|
*/
|
|
171
184
|
this.pendingTransactionInformation = async (txid, headerObj = {}) => {
|
|
172
185
|
const res = await c.get(`/v1/transactions/pending/${txid}`, {}, headerObj);
|
|
@@ -180,6 +193,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
180
193
|
* @param addr - string
|
|
181
194
|
* @param headerObj, optional
|
|
182
195
|
* @returns {Promise<*>}
|
|
196
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
183
197
|
*/
|
|
184
198
|
this.accountInformation = async (addr, headerObj = {}) => {
|
|
185
199
|
const res = await c.get(`/v1/account/${addr}`, {}, headerObj);
|
|
@@ -190,6 +204,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
190
204
|
* @param index - number
|
|
191
205
|
* @param headerObj, optional
|
|
192
206
|
* @returns {Promise<*>}
|
|
207
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
193
208
|
*/
|
|
194
209
|
this.assetInformation = async (index, headerObj = {}) => {
|
|
195
210
|
const res = await c.get(`/v1/asset/${index}`, {}, headerObj);
|
|
@@ -199,6 +214,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
199
214
|
* suggestedFee gets the recommended transaction fee from the node
|
|
200
215
|
* @param headerObj, optional
|
|
201
216
|
* @returns {Promise<*>}
|
|
217
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
202
218
|
*/
|
|
203
219
|
this.suggestedFee = async (headerObj = {}) => {
|
|
204
220
|
const res = await c.get('/v1/transactions/fee', {}, headerObj);
|
|
@@ -209,6 +225,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
209
225
|
* @param txn - Uin8Array
|
|
210
226
|
* @param headerObj, optional
|
|
211
227
|
* @returns {Promise<*>}
|
|
228
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
212
229
|
*/
|
|
213
230
|
this.sendRawTransaction = async (txn, headerObj = {}) => {
|
|
214
231
|
const txHeaders = setSendTransactionHeaders(headerObj);
|
|
@@ -220,6 +237,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
220
237
|
* @param txn - Array of Uin8Array
|
|
221
238
|
* @param headerObj, optional
|
|
222
239
|
* @returns {Promise<*>}
|
|
240
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
223
241
|
*/
|
|
224
242
|
this.sendRawTransactions = async (txns, headerObj = {}) => {
|
|
225
243
|
const txHeaders = setSendTransactionHeaders(headerObj);
|
|
@@ -231,6 +249,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
231
249
|
* getTransactionParams returns to common needed parameters for a new transaction
|
|
232
250
|
* @param headerObj, optional
|
|
233
251
|
* @returns {Promise<*>}
|
|
252
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
234
253
|
*/
|
|
235
254
|
this.getTransactionParams = async (headerObj = {}) => {
|
|
236
255
|
const res = await c.get('/v1/transactions/params', {}, headerObj);
|
|
@@ -240,6 +259,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
240
259
|
* suggestParams returns to common needed parameters for a new transaction, in a format the transaction builder expects
|
|
241
260
|
* @param headerObj, optional
|
|
242
261
|
* @returns {Object}
|
|
262
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
243
263
|
*/
|
|
244
264
|
this.suggestParams = async (headerObj = {}) => {
|
|
245
265
|
const result = await this.getTransactionParams(headerObj);
|
|
@@ -257,6 +277,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
257
277
|
* @param roundNumber
|
|
258
278
|
* @param headerObj, optional
|
|
259
279
|
* @returns {Promise<*>}
|
|
280
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
260
281
|
*/
|
|
261
282
|
this.block = async (roundNumber, headerObj = {}) => {
|
|
262
283
|
if (!Number.isInteger(roundNumber))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"algod.js","sourceRoot":"","sources":["../../../../src/client/algod.js"],"names":[],"mappings":"AAAA,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpD,MAAM,EAAE,yBAAyB,EAAE,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAE/E,SAAS,KAAK,CACZ,KAAK,GAAG,EAAE,EACV,UAAU,GAAG,4BAA4B,EACzC,IAAI,GAAG,IAAI,EACX,OAAO,GAAG,EAAE;IAEZ,mEAAmE;IACnE,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;QACnC,WAAW,GAAG,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAAC;KACnD;IAED,aAAa;IACb,MAAM,CAAC,GAAG,IAAI,UAAU,CAAC,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAEjE
|
|
1
|
+
{"version":3,"file":"algod.js","sourceRoot":"","sources":["../../../../src/client/algod.js"],"names":[],"mappings":"AAAA,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpD,MAAM,EAAE,yBAAyB,EAAE,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAE/E,yEAAyE;AACzE,SAAS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AG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC1D,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,aAAa,CAC3C,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAC9B,CAAC;aACH;SACF;QACD,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const { default: HTTPClient } = require('./client');
|
|
2
2
|
const { setSendTransactionHeaders } = require('./v2/algod/sendRawTransaction');
|
|
3
|
+
/** @deprecated v1 algod APIs are deprecated, please use the v2 client */
|
|
3
4
|
function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 4180, headers = {}) {
|
|
4
5
|
// workaround to allow backwards compatibility for multiple headers
|
|
5
6
|
let tokenHeader = token;
|
|
@@ -12,6 +13,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
12
13
|
* Takes an object and convert its note field to Buffer, if exist.
|
|
13
14
|
* @param o
|
|
14
15
|
* @returns {*}
|
|
16
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
15
17
|
*/
|
|
16
18
|
function noteb64ToNote(o) {
|
|
17
19
|
if (!(o.noteb64 === undefined || o.noteb64 === null)) {
|
|
@@ -24,6 +26,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
24
26
|
* status retrieves the StatusResponse from the running node
|
|
25
27
|
* @param headerObj, optional
|
|
26
28
|
* @returns {Promise<*>}
|
|
29
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
27
30
|
*/
|
|
28
31
|
this.status = async (headerObj = {}) => {
|
|
29
32
|
const res = await c.get('/v1/status', {}, headerObj);
|
|
@@ -33,6 +36,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
33
36
|
* healthCheck returns an empty object iff the node is running
|
|
34
37
|
* @param headerObj, optional
|
|
35
38
|
* @returns {Promise<*>}
|
|
39
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
36
40
|
*/
|
|
37
41
|
this.healthCheck = async (headerObj = {}) => {
|
|
38
42
|
const res = await c.get('/health', {}, headerObj);
|
|
@@ -47,6 +51,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
47
51
|
* @param roundNumber
|
|
48
52
|
* @param headerObj, optional
|
|
49
53
|
* @returns {Promise<*>}
|
|
54
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
50
55
|
*/
|
|
51
56
|
this.statusAfterBlock = async (roundNumber, headerObj = {}) => {
|
|
52
57
|
if (!Number.isInteger(roundNumber))
|
|
@@ -60,6 +65,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
60
65
|
* @param maxTxns - number
|
|
61
66
|
* @param headerObj, optional
|
|
62
67
|
* @returns {Promise<*>}
|
|
68
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
63
69
|
*/
|
|
64
70
|
this.pendingTransactions = async (maxTxns, headerObj = {}) => {
|
|
65
71
|
if (!Number.isInteger(maxTxns))
|
|
@@ -77,6 +83,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
77
83
|
* versions retrieves the VersionResponse from the running node
|
|
78
84
|
* @param headerObj, optional
|
|
79
85
|
* @returns {Promise<*>}
|
|
86
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
80
87
|
*/
|
|
81
88
|
this.versions = async (headerObj = {}) => {
|
|
82
89
|
const res = await c.get('/versions', {}, headerObj);
|
|
@@ -86,6 +93,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
86
93
|
* LedgerSupply gets the supply details for the specified node's Ledger
|
|
87
94
|
* @param headerObj, optional
|
|
88
95
|
* @returns {Promise<*>}
|
|
96
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
89
97
|
*/
|
|
90
98
|
this.ledgerSupply = async (headerObj = {}) => {
|
|
91
99
|
const res = await c.get('/v1/ledger/supply', {}, headerObj);
|
|
@@ -99,6 +107,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
99
107
|
* @param maxTxns - number, optional
|
|
100
108
|
* @param headers, optional
|
|
101
109
|
* @returns {Promise<*>}
|
|
110
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
102
111
|
*/
|
|
103
112
|
this.transactionByAddress = async (addr, first = null, last = null, maxTxns = null, headerObj = {}) => {
|
|
104
113
|
if (first !== null && !Number.isInteger(first)) {
|
|
@@ -124,6 +133,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
124
133
|
* @param maxTxns - number, optional
|
|
125
134
|
* @param headerObj, optional
|
|
126
135
|
* @returns {Promise<*>}
|
|
136
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
127
137
|
*/
|
|
128
138
|
this.transactionByAddressAndDate = async (addr, fromDate, toDate, maxTxns = null, headerObj = {}) => {
|
|
129
139
|
const res = await c.get(`/v1/account/${addr}/transactions`, { fromDate, toDate, max: maxTxns }, headerObj);
|
|
@@ -140,6 +150,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
140
150
|
* @param txid
|
|
141
151
|
* @param headerObj, optional
|
|
142
152
|
* @returns {Promise<*>}
|
|
153
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
143
154
|
*/
|
|
144
155
|
this.transactionById = async (txid, headerObj = {}) => {
|
|
145
156
|
const res = await c.get(`/v1/transaction/${txid}`, {}, headerObj);
|
|
@@ -154,6 +165,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
154
165
|
* @param txid
|
|
155
166
|
* @param headerObj, optional
|
|
156
167
|
* @returns {Promise<*>}
|
|
168
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
157
169
|
*/
|
|
158
170
|
this.transactionInformation = async (addr, txid, headerObj = {}) => {
|
|
159
171
|
const res = await c.get(`/v1/account/${addr}/transaction/${txid}`, {}, headerObj);
|
|
@@ -167,6 +179,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
167
179
|
* @param txid
|
|
168
180
|
* @param headerObj, optional
|
|
169
181
|
* @returns {Promise<*>}
|
|
182
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
170
183
|
*/
|
|
171
184
|
this.pendingTransactionInformation = async (txid, headerObj = {}) => {
|
|
172
185
|
const res = await c.get(`/v1/transactions/pending/${txid}`, {}, headerObj);
|
|
@@ -180,6 +193,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
180
193
|
* @param addr - string
|
|
181
194
|
* @param headerObj, optional
|
|
182
195
|
* @returns {Promise<*>}
|
|
196
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
183
197
|
*/
|
|
184
198
|
this.accountInformation = async (addr, headerObj = {}) => {
|
|
185
199
|
const res = await c.get(`/v1/account/${addr}`, {}, headerObj);
|
|
@@ -190,6 +204,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
190
204
|
* @param index - number
|
|
191
205
|
* @param headerObj, optional
|
|
192
206
|
* @returns {Promise<*>}
|
|
207
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
193
208
|
*/
|
|
194
209
|
this.assetInformation = async (index, headerObj = {}) => {
|
|
195
210
|
const res = await c.get(`/v1/asset/${index}`, {}, headerObj);
|
|
@@ -199,6 +214,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
199
214
|
* suggestedFee gets the recommended transaction fee from the node
|
|
200
215
|
* @param headerObj, optional
|
|
201
216
|
* @returns {Promise<*>}
|
|
217
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
202
218
|
*/
|
|
203
219
|
this.suggestedFee = async (headerObj = {}) => {
|
|
204
220
|
const res = await c.get('/v1/transactions/fee', {}, headerObj);
|
|
@@ -209,6 +225,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
209
225
|
* @param txn - Uin8Array
|
|
210
226
|
* @param headerObj, optional
|
|
211
227
|
* @returns {Promise<*>}
|
|
228
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
212
229
|
*/
|
|
213
230
|
this.sendRawTransaction = async (txn, headerObj = {}) => {
|
|
214
231
|
const txHeaders = setSendTransactionHeaders(headerObj);
|
|
@@ -220,6 +237,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
220
237
|
* @param txn - Array of Uin8Array
|
|
221
238
|
* @param headerObj, optional
|
|
222
239
|
* @returns {Promise<*>}
|
|
240
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
223
241
|
*/
|
|
224
242
|
this.sendRawTransactions = async (txns, headerObj = {}) => {
|
|
225
243
|
const txHeaders = setSendTransactionHeaders(headerObj);
|
|
@@ -231,6 +249,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
231
249
|
* getTransactionParams returns to common needed parameters for a new transaction
|
|
232
250
|
* @param headerObj, optional
|
|
233
251
|
* @returns {Promise<*>}
|
|
252
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
234
253
|
*/
|
|
235
254
|
this.getTransactionParams = async (headerObj = {}) => {
|
|
236
255
|
const res = await c.get('/v1/transactions/params', {}, headerObj);
|
|
@@ -240,6 +259,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
240
259
|
* suggestParams returns to common needed parameters for a new transaction, in a format the transaction builder expects
|
|
241
260
|
* @param headerObj, optional
|
|
242
261
|
* @returns {Object}
|
|
262
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
243
263
|
*/
|
|
244
264
|
this.suggestParams = async (headerObj = {}) => {
|
|
245
265
|
const result = await this.getTransactionParams(headerObj);
|
|
@@ -257,6 +277,7 @@ function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 418
|
|
|
257
277
|
* @param roundNumber
|
|
258
278
|
* @param headerObj, optional
|
|
259
279
|
* @returns {Promise<*>}
|
|
280
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
260
281
|
*/
|
|
261
282
|
this.block = async (roundNumber, headerObj = {}) => {
|
|
262
283
|
if (!Number.isInteger(roundNumber))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"algod.js","sourceRoot":"","sources":["../../../../src/client/algod.js"],"names":[],"mappings":"AAAA,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpD,MAAM,EAAE,yBAAyB,EAAE,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAE/E,SAAS,KAAK,CACZ,KAAK,GAAG,EAAE,EACV,UAAU,GAAG,4BAA4B,EACzC,IAAI,GAAG,IAAI,EACX,OAAO,GAAG,EAAE;IAEZ,mEAAmE;IACnE,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;QACnC,WAAW,GAAG,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAAC;KACnD;IAED,aAAa;IACb,MAAM,CAAC,GAAG,IAAI,UAAU,CAAC,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAEjE
|
|
1
|
+
{"version":3,"file":"algod.js","sourceRoot":"","sources":["../../../../src/client/algod.js"],"names":[],"mappings":"AAAA,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpD,MAAM,EAAE,yBAAyB,EAAE,GAAG,OA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YACtE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC1D,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,aAAa,CAC3C,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAC9B,CAAC;aACH;SACF;QACD,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
+
/** @deprecated v1 algod APIs are deprecated, please use the v2 client */
|
|
1
2
|
export function Algod(token?: string, baseServer?: string, port?: number, headers?: {}): void;
|
|
2
3
|
export class Algod {
|
|
4
|
+
/** @deprecated v1 algod APIs are deprecated, please use the v2 client */
|
|
3
5
|
constructor(token?: string, baseServer?: string, port?: number, headers?: {});
|
|
4
6
|
/**
|
|
5
7
|
* status retrieves the StatusResponse from the running node
|
|
6
8
|
* @param headerObj, optional
|
|
7
9
|
* @returns {Promise<*>}
|
|
10
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
8
11
|
*/
|
|
9
12
|
status: (headerObj?: {}) => Promise<any>;
|
|
10
13
|
/**
|
|
11
14
|
* healthCheck returns an empty object iff the node is running
|
|
12
15
|
* @param headerObj, optional
|
|
13
16
|
* @returns {Promise<*>}
|
|
17
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
14
18
|
*/
|
|
15
19
|
healthCheck: (headerObj?: {}) => Promise<any>;
|
|
16
20
|
/**
|
|
@@ -19,6 +23,7 @@ export class Algod {
|
|
|
19
23
|
* @param roundNumber
|
|
20
24
|
* @param headerObj, optional
|
|
21
25
|
* @returns {Promise<*>}
|
|
26
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
22
27
|
*/
|
|
23
28
|
statusAfterBlock: (roundNumber: any, headerObj?: {}) => Promise<any>;
|
|
24
29
|
/**
|
|
@@ -27,18 +32,21 @@ export class Algod {
|
|
|
27
32
|
* @param maxTxns - number
|
|
28
33
|
* @param headerObj, optional
|
|
29
34
|
* @returns {Promise<*>}
|
|
35
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
30
36
|
*/
|
|
31
37
|
pendingTransactions: (maxTxns: any, headerObj?: {}) => Promise<any>;
|
|
32
38
|
/**
|
|
33
39
|
* versions retrieves the VersionResponse from the running node
|
|
34
40
|
* @param headerObj, optional
|
|
35
41
|
* @returns {Promise<*>}
|
|
42
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
36
43
|
*/
|
|
37
44
|
versions: (headerObj?: {}) => Promise<any>;
|
|
38
45
|
/**
|
|
39
46
|
* LedgerSupply gets the supply details for the specified node's Ledger
|
|
40
47
|
* @param headerObj, optional
|
|
41
48
|
* @returns {Promise<*>}
|
|
49
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
42
50
|
*/
|
|
43
51
|
ledgerSupply: (headerObj?: {}) => Promise<any>;
|
|
44
52
|
/**
|
|
@@ -49,6 +57,7 @@ export class Algod {
|
|
|
49
57
|
* @param maxTxns - number, optional
|
|
50
58
|
* @param headers, optional
|
|
51
59
|
* @returns {Promise<*>}
|
|
60
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
52
61
|
*/
|
|
53
62
|
transactionByAddress: (addr: any, first?: any, last?: any, maxTxns?: any, headerObj?: {}) => Promise<any>;
|
|
54
63
|
/**
|
|
@@ -60,6 +69,7 @@ export class Algod {
|
|
|
60
69
|
* @param maxTxns - number, optional
|
|
61
70
|
* @param headerObj, optional
|
|
62
71
|
* @returns {Promise<*>}
|
|
72
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
63
73
|
*/
|
|
64
74
|
transactionByAddressAndDate: (addr: any, fromDate: any, toDate: any, maxTxns?: any, headerObj?: {}) => Promise<any>;
|
|
65
75
|
/**
|
|
@@ -68,6 +78,7 @@ export class Algod {
|
|
|
68
78
|
* @param txid
|
|
69
79
|
* @param headerObj, optional
|
|
70
80
|
* @returns {Promise<*>}
|
|
81
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
71
82
|
*/
|
|
72
83
|
transactionById: (txid: any, headerObj?: {}) => Promise<any>;
|
|
73
84
|
/**
|
|
@@ -76,6 +87,7 @@ export class Algod {
|
|
|
76
87
|
* @param txid
|
|
77
88
|
* @param headerObj, optional
|
|
78
89
|
* @returns {Promise<*>}
|
|
90
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
79
91
|
*/
|
|
80
92
|
transactionInformation: (addr: any, txid: any, headerObj?: {}) => Promise<any>;
|
|
81
93
|
/**
|
|
@@ -83,6 +95,7 @@ export class Algod {
|
|
|
83
95
|
* @param txid
|
|
84
96
|
* @param headerObj, optional
|
|
85
97
|
* @returns {Promise<*>}
|
|
98
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
86
99
|
*/
|
|
87
100
|
pendingTransactionInformation: (txid: any, headerObj?: {}) => Promise<any>;
|
|
88
101
|
/**
|
|
@@ -90,6 +103,7 @@ export class Algod {
|
|
|
90
103
|
* @param addr - string
|
|
91
104
|
* @param headerObj, optional
|
|
92
105
|
* @returns {Promise<*>}
|
|
106
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
93
107
|
*/
|
|
94
108
|
accountInformation: (addr: any, headerObj?: {}) => Promise<any>;
|
|
95
109
|
/**
|
|
@@ -97,12 +111,14 @@ export class Algod {
|
|
|
97
111
|
* @param index - number
|
|
98
112
|
* @param headerObj, optional
|
|
99
113
|
* @returns {Promise<*>}
|
|
114
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
100
115
|
*/
|
|
101
116
|
assetInformation: (index: any, headerObj?: {}) => Promise<any>;
|
|
102
117
|
/**
|
|
103
118
|
* suggestedFee gets the recommended transaction fee from the node
|
|
104
119
|
* @param headerObj, optional
|
|
105
120
|
* @returns {Promise<*>}
|
|
121
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
106
122
|
*/
|
|
107
123
|
suggestedFee: (headerObj?: {}) => Promise<any>;
|
|
108
124
|
/**
|
|
@@ -110,6 +126,7 @@ export class Algod {
|
|
|
110
126
|
* @param txn - Uin8Array
|
|
111
127
|
* @param headerObj, optional
|
|
112
128
|
* @returns {Promise<*>}
|
|
129
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
113
130
|
*/
|
|
114
131
|
sendRawTransaction: (txn: any, headerObj?: {}) => Promise<any>;
|
|
115
132
|
/**
|
|
@@ -117,18 +134,21 @@ export class Algod {
|
|
|
117
134
|
* @param txn - Array of Uin8Array
|
|
118
135
|
* @param headerObj, optional
|
|
119
136
|
* @returns {Promise<*>}
|
|
137
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
120
138
|
*/
|
|
121
139
|
sendRawTransactions: (txns: any, headerObj?: {}) => Promise<any>;
|
|
122
140
|
/**
|
|
123
141
|
* getTransactionParams returns to common needed parameters for a new transaction
|
|
124
142
|
* @param headerObj, optional
|
|
125
143
|
* @returns {Promise<*>}
|
|
144
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
126
145
|
*/
|
|
127
146
|
getTransactionParams: (headerObj?: {}) => Promise<any>;
|
|
128
147
|
/**
|
|
129
148
|
* suggestParams returns to common needed parameters for a new transaction, in a format the transaction builder expects
|
|
130
149
|
* @param headerObj, optional
|
|
131
150
|
* @returns {Object}
|
|
151
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
132
152
|
*/
|
|
133
153
|
suggestParams: (headerObj?: {}) => any;
|
|
134
154
|
/**
|
|
@@ -136,6 +156,7 @@ export class Algod {
|
|
|
136
156
|
* @param roundNumber
|
|
137
157
|
* @param headerObj, optional
|
|
138
158
|
* @returns {Promise<*>}
|
|
159
|
+
* @deprecated v1 algod APIs are deprecated, please use the v2 client
|
|
139
160
|
*/
|
|
140
161
|
block: (roundNumber: any, headerObj?: {}) => Promise<any>;
|
|
141
162
|
}
|