@avalabs/glacier-sdk 2.8.0-canary.f19144b.0 → 2.8.0-canary.f195b3d.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/dist/index.d.ts +1330 -560
- package/dist/index.js +475 -103
- package/esm/generated/Glacier.d.ts +8 -0
- package/esm/generated/Glacier.js +12 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/Asset.d.ts +3 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/Erc1155Contract.d.ts +2 -1
- package/esm/generated/models/Erc20Contract.d.ts +2 -1
- package/esm/generated/models/Erc721Contract.d.ts +0 -1
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
- package/esm/generated/models/PChainTransaction.d.ts +5 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -4
- package/esm/generated/models/PChainTransactionType.js +6 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +2 -2
- package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/UnknownContract.d.ts +0 -1
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +28 -28
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +15 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +67 -0
- package/esm/generated/services/DefaultService.js +55 -0
- package/esm/generated/services/EvmBalancesService.d.ts +20 -20
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +5 -5
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +79 -37
- package/esm/generated/services/EvmTransactionsService.js +33 -33
- package/esm/generated/services/NfTsService.d.ts +76 -0
- package/esm/generated/services/NfTsService.js +56 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
- package/esm/generated/services/PrimaryNetworkService.js +26 -14
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/TeleporterService.d.ts +65 -0
- package/esm/generated/services/TeleporterService.js +43 -0
- package/esm/index.d.ts +33 -1
- package/esm/index.js +25 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -12,19 +12,19 @@ declare class EvmBlocksService {
|
|
|
12
12
|
* @returns ListEvmBlocksResponse
|
|
13
13
|
* @throws ApiError
|
|
14
14
|
*/
|
|
15
|
-
getLatestBlocks({ chainId,
|
|
15
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
16
16
|
/**
|
|
17
17
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
18
|
*/
|
|
19
19
|
chainId: string;
|
|
20
|
-
/**
|
|
21
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
22
|
-
*/
|
|
23
|
-
pageSize?: number;
|
|
24
20
|
/**
|
|
25
21
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
26
22
|
*/
|
|
27
23
|
pageToken?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
26
|
+
*/
|
|
27
|
+
pageSize?: number;
|
|
28
28
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* Get block
|
|
@@ -4,8 +4,8 @@ class EvmBlocksService {
|
|
|
4
4
|
}
|
|
5
5
|
getLatestBlocks({
|
|
6
6
|
chainId,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
pageToken,
|
|
8
|
+
pageSize = 10
|
|
9
9
|
}) {
|
|
10
10
|
return this.httpRequest.request({
|
|
11
11
|
method: "GET",
|
|
@@ -14,8 +14,8 @@ class EvmBlocksService {
|
|
|
14
14
|
"chainId": chainId
|
|
15
15
|
},
|
|
16
16
|
query: {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
17
|
+
"pageToken": pageToken,
|
|
18
|
+
"pageSize": pageSize
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ContractSubmissionBody } from '../models/ContractSubmissionBody.js';
|
|
2
|
+
import { Erc1155Contract } from '../models/Erc1155Contract.js';
|
|
3
|
+
import { Erc20Contract } from '../models/Erc20Contract.js';
|
|
4
|
+
import { Erc721Contract } from '../models/Erc721Contract.js';
|
|
5
|
+
import { UnknownContract } from '../models/UnknownContract.js';
|
|
6
|
+
import { UpdateContractResponse } from '../models/UpdateContractResponse.js';
|
|
7
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
8
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
9
|
+
|
|
10
|
+
declare class EvmContractsService {
|
|
11
|
+
readonly httpRequest: BaseHttpRequest;
|
|
12
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
13
|
+
/**
|
|
14
|
+
* Get contract metadata
|
|
15
|
+
* Gets metadata about the contract at the given address.
|
|
16
|
+
* @returns any
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
getContractMetadata({ chainId, address, }: {
|
|
20
|
+
/**
|
|
21
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
22
|
+
*/
|
|
23
|
+
chainId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Contract address on the relevant chain.
|
|
26
|
+
*/
|
|
27
|
+
address: string;
|
|
28
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
29
|
+
/**
|
|
30
|
+
* Update contract information
|
|
31
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
32
|
+
* @returns UpdateContractResponse
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
36
|
+
/**
|
|
37
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
|
+
*/
|
|
39
|
+
chainId: string;
|
|
40
|
+
/**
|
|
41
|
+
* Contract address on the relevant chain.
|
|
42
|
+
*/
|
|
43
|
+
address: string;
|
|
44
|
+
requestBody: ContractSubmissionBody;
|
|
45
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { EvmContractsService };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
class EvmContractsService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
getContractMetadata({
|
|
6
|
+
chainId,
|
|
7
|
+
address
|
|
8
|
+
}) {
|
|
9
|
+
return this.httpRequest.request({
|
|
10
|
+
method: "GET",
|
|
11
|
+
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
12
|
+
path: {
|
|
13
|
+
"chainId": chainId,
|
|
14
|
+
"address": address
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
updateContractInfo({
|
|
19
|
+
chainId,
|
|
20
|
+
address,
|
|
21
|
+
requestBody
|
|
22
|
+
}) {
|
|
23
|
+
return this.httpRequest.request({
|
|
24
|
+
method: "PATCH",
|
|
25
|
+
url: "/v1/chains/{chainId}/contracts/{address}",
|
|
26
|
+
path: {
|
|
27
|
+
"chainId": chainId,
|
|
28
|
+
"address": address
|
|
29
|
+
},
|
|
30
|
+
body: requestBody,
|
|
31
|
+
mediaType: "application/json"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { EvmContractsService };
|
|
@@ -42,7 +42,7 @@ declare class EvmTransactionsService {
|
|
|
42
42
|
* @returns ListContractsResponse
|
|
43
43
|
* @throws ApiError
|
|
44
44
|
*/
|
|
45
|
-
listContractDeployments({ chainId, address,
|
|
45
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
46
46
|
/**
|
|
47
47
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
48
48
|
*/
|
|
@@ -51,14 +51,14 @@ declare class EvmTransactionsService {
|
|
|
51
51
|
* A wallet address.
|
|
52
52
|
*/
|
|
53
53
|
address: string;
|
|
54
|
-
/**
|
|
55
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
56
|
-
*/
|
|
57
|
-
pageSize?: number;
|
|
58
54
|
/**
|
|
59
55
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
60
56
|
*/
|
|
61
57
|
pageToken?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
60
|
+
*/
|
|
61
|
+
pageSize?: number;
|
|
62
62
|
}): CancelablePromise<ListContractsResponse>;
|
|
63
63
|
/**
|
|
64
64
|
* List ERC transfers
|
|
@@ -66,7 +66,7 @@ declare class EvmTransactionsService {
|
|
|
66
66
|
* @returns ListTransfersResponse
|
|
67
67
|
* @throws ApiError
|
|
68
68
|
*/
|
|
69
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
69
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
70
70
|
/**
|
|
71
71
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
72
72
|
*/
|
|
@@ -75,16 +75,22 @@ declare class EvmTransactionsService {
|
|
|
75
75
|
* A wallet address.
|
|
76
76
|
*/
|
|
77
77
|
address: string;
|
|
78
|
+
/**
|
|
79
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
80
|
+
*/
|
|
78
81
|
startBlock?: number;
|
|
79
|
-
endBlock?: number;
|
|
80
82
|
/**
|
|
81
|
-
* The
|
|
83
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
82
84
|
*/
|
|
83
|
-
|
|
85
|
+
endBlock?: number;
|
|
84
86
|
/**
|
|
85
87
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
86
88
|
*/
|
|
87
89
|
pageToken?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
92
|
+
*/
|
|
93
|
+
pageSize?: number;
|
|
88
94
|
}): CancelablePromise<ListTransfersResponse>;
|
|
89
95
|
/**
|
|
90
96
|
* List transactions
|
|
@@ -94,7 +100,7 @@ declare class EvmTransactionsService {
|
|
|
94
100
|
* @returns ListTransactionDetailsResponse
|
|
95
101
|
* @throws ApiError
|
|
96
102
|
*/
|
|
97
|
-
listTransactions({ chainId, address,
|
|
103
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
98
104
|
/**
|
|
99
105
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
100
106
|
*/
|
|
@@ -103,15 +109,21 @@ declare class EvmTransactionsService {
|
|
|
103
109
|
* A wallet address.
|
|
104
110
|
*/
|
|
105
111
|
address: string;
|
|
112
|
+
/**
|
|
113
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
114
|
+
*/
|
|
115
|
+
pageToken?: string;
|
|
106
116
|
/**
|
|
107
117
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
108
118
|
*/
|
|
109
119
|
pageSize?: number;
|
|
110
120
|
/**
|
|
111
|
-
*
|
|
121
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
112
122
|
*/
|
|
113
|
-
pageToken?: string;
|
|
114
123
|
startBlock?: number;
|
|
124
|
+
/**
|
|
125
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
126
|
+
*/
|
|
115
127
|
endBlock?: number;
|
|
116
128
|
/**
|
|
117
129
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
@@ -124,7 +136,7 @@ declare class EvmTransactionsService {
|
|
|
124
136
|
* @returns ListNativeTransactionsResponse
|
|
125
137
|
* @throws ApiError
|
|
126
138
|
*/
|
|
127
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
139
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
128
140
|
/**
|
|
129
141
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
130
142
|
*/
|
|
@@ -133,16 +145,22 @@ declare class EvmTransactionsService {
|
|
|
133
145
|
* A wallet address.
|
|
134
146
|
*/
|
|
135
147
|
address: string;
|
|
148
|
+
/**
|
|
149
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
150
|
+
*/
|
|
136
151
|
startBlock?: number;
|
|
137
|
-
endBlock?: number;
|
|
138
152
|
/**
|
|
139
|
-
* The
|
|
153
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
140
154
|
*/
|
|
141
|
-
|
|
155
|
+
endBlock?: number;
|
|
142
156
|
/**
|
|
143
157
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
144
158
|
*/
|
|
145
159
|
pageToken?: string;
|
|
160
|
+
/**
|
|
161
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
162
|
+
*/
|
|
163
|
+
pageSize?: number;
|
|
146
164
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
147
165
|
/**
|
|
148
166
|
* List ERC-20 transfers
|
|
@@ -150,7 +168,7 @@ declare class EvmTransactionsService {
|
|
|
150
168
|
* @returns ListErc20TransactionsResponse
|
|
151
169
|
* @throws ApiError
|
|
152
170
|
*/
|
|
153
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
171
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
154
172
|
/**
|
|
155
173
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
156
174
|
*/
|
|
@@ -159,16 +177,22 @@ declare class EvmTransactionsService {
|
|
|
159
177
|
* A wallet address.
|
|
160
178
|
*/
|
|
161
179
|
address: string;
|
|
180
|
+
/**
|
|
181
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
182
|
+
*/
|
|
162
183
|
startBlock?: number;
|
|
163
|
-
endBlock?: number;
|
|
164
184
|
/**
|
|
165
|
-
* The
|
|
185
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
166
186
|
*/
|
|
167
|
-
|
|
187
|
+
endBlock?: number;
|
|
168
188
|
/**
|
|
169
189
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
170
190
|
*/
|
|
171
191
|
pageToken?: string;
|
|
192
|
+
/**
|
|
193
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
194
|
+
*/
|
|
195
|
+
pageSize?: number;
|
|
172
196
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
173
197
|
/**
|
|
174
198
|
* List ERC-721 transfers
|
|
@@ -176,7 +200,7 @@ declare class EvmTransactionsService {
|
|
|
176
200
|
* @returns ListErc721TransactionsResponse
|
|
177
201
|
* @throws ApiError
|
|
178
202
|
*/
|
|
179
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
203
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
180
204
|
/**
|
|
181
205
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
182
206
|
*/
|
|
@@ -185,16 +209,22 @@ declare class EvmTransactionsService {
|
|
|
185
209
|
* A wallet address.
|
|
186
210
|
*/
|
|
187
211
|
address: string;
|
|
212
|
+
/**
|
|
213
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
214
|
+
*/
|
|
188
215
|
startBlock?: number;
|
|
189
|
-
endBlock?: number;
|
|
190
216
|
/**
|
|
191
|
-
* The
|
|
217
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
192
218
|
*/
|
|
193
|
-
|
|
219
|
+
endBlock?: number;
|
|
194
220
|
/**
|
|
195
221
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
196
222
|
*/
|
|
197
223
|
pageToken?: string;
|
|
224
|
+
/**
|
|
225
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
226
|
+
*/
|
|
227
|
+
pageSize?: number;
|
|
198
228
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
199
229
|
/**
|
|
200
230
|
* List ERC-1155 transfers
|
|
@@ -202,7 +232,7 @@ declare class EvmTransactionsService {
|
|
|
202
232
|
* @returns ListErc1155TransactionsResponse
|
|
203
233
|
* @throws ApiError
|
|
204
234
|
*/
|
|
205
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
235
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
206
236
|
/**
|
|
207
237
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
208
238
|
*/
|
|
@@ -211,16 +241,22 @@ declare class EvmTransactionsService {
|
|
|
211
241
|
* A wallet address.
|
|
212
242
|
*/
|
|
213
243
|
address: string;
|
|
244
|
+
/**
|
|
245
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
246
|
+
*/
|
|
214
247
|
startBlock?: number;
|
|
215
|
-
endBlock?: number;
|
|
216
248
|
/**
|
|
217
|
-
* The
|
|
249
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
218
250
|
*/
|
|
219
|
-
|
|
251
|
+
endBlock?: number;
|
|
220
252
|
/**
|
|
221
253
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
222
254
|
*/
|
|
223
255
|
pageToken?: string;
|
|
256
|
+
/**
|
|
257
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
258
|
+
*/
|
|
259
|
+
pageSize?: number;
|
|
224
260
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
225
261
|
/**
|
|
226
262
|
* List internal transactions
|
|
@@ -230,7 +266,7 @@ declare class EvmTransactionsService {
|
|
|
230
266
|
* @returns ListInternalTransactionsResponse
|
|
231
267
|
* @throws ApiError
|
|
232
268
|
*/
|
|
233
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
269
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
234
270
|
/**
|
|
235
271
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
236
272
|
*/
|
|
@@ -239,16 +275,22 @@ declare class EvmTransactionsService {
|
|
|
239
275
|
* A wallet address.
|
|
240
276
|
*/
|
|
241
277
|
address: string;
|
|
278
|
+
/**
|
|
279
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
280
|
+
*/
|
|
242
281
|
startBlock?: number;
|
|
243
|
-
endBlock?: number;
|
|
244
282
|
/**
|
|
245
|
-
* The
|
|
283
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
246
284
|
*/
|
|
247
|
-
|
|
285
|
+
endBlock?: number;
|
|
248
286
|
/**
|
|
249
287
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
250
288
|
*/
|
|
251
289
|
pageToken?: string;
|
|
290
|
+
/**
|
|
291
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
292
|
+
*/
|
|
293
|
+
pageSize?: number;
|
|
252
294
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
253
295
|
/**
|
|
254
296
|
* Get transaction
|
|
@@ -288,19 +330,19 @@ declare class EvmTransactionsService {
|
|
|
288
330
|
* @returns ListNativeTransactionsResponse
|
|
289
331
|
* @throws ApiError
|
|
290
332
|
*/
|
|
291
|
-
listLatestTransactions({ chainId,
|
|
333
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
292
334
|
/**
|
|
293
335
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
294
336
|
*/
|
|
295
337
|
chainId: string;
|
|
296
|
-
/**
|
|
297
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
298
|
-
*/
|
|
299
|
-
pageSize?: number;
|
|
300
338
|
/**
|
|
301
339
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
302
340
|
*/
|
|
303
341
|
pageToken?: string;
|
|
342
|
+
/**
|
|
343
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
344
|
+
*/
|
|
345
|
+
pageSize?: number;
|
|
304
346
|
/**
|
|
305
347
|
* A status filter for listed transactions.
|
|
306
348
|
*/
|
|
@@ -22,19 +22,19 @@ class EvmTransactionsService {
|
|
|
22
22
|
listContractDeployments({
|
|
23
23
|
chainId,
|
|
24
24
|
address,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
pageToken,
|
|
26
|
+
pageSize = 10
|
|
27
27
|
}) {
|
|
28
28
|
return this.httpRequest.request({
|
|
29
29
|
method: "GET",
|
|
30
|
-
url: "/v1/chains/{chainId}/
|
|
30
|
+
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
31
31
|
path: {
|
|
32
32
|
"chainId": chainId,
|
|
33
33
|
"address": address
|
|
34
34
|
},
|
|
35
35
|
query: {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"pageToken": pageToken,
|
|
37
|
+
"pageSize": pageSize
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -43,8 +43,8 @@ class EvmTransactionsService {
|
|
|
43
43
|
address,
|
|
44
44
|
startBlock,
|
|
45
45
|
endBlock,
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
pageToken,
|
|
47
|
+
pageSize = 10
|
|
48
48
|
}) {
|
|
49
49
|
return this.httpRequest.request({
|
|
50
50
|
method: "GET",
|
|
@@ -56,16 +56,16 @@ class EvmTransactionsService {
|
|
|
56
56
|
query: {
|
|
57
57
|
"startBlock": startBlock,
|
|
58
58
|
"endBlock": endBlock,
|
|
59
|
-
"
|
|
60
|
-
"
|
|
59
|
+
"pageToken": pageToken,
|
|
60
|
+
"pageSize": pageSize
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
listTransactions({
|
|
65
65
|
chainId,
|
|
66
66
|
address,
|
|
67
|
-
pageSize = 10,
|
|
68
67
|
pageToken,
|
|
68
|
+
pageSize = 10,
|
|
69
69
|
startBlock,
|
|
70
70
|
endBlock,
|
|
71
71
|
sortOrder
|
|
@@ -78,8 +78,8 @@ class EvmTransactionsService {
|
|
|
78
78
|
"address": address
|
|
79
79
|
},
|
|
80
80
|
query: {
|
|
81
|
-
"pageSize": pageSize,
|
|
82
81
|
"pageToken": pageToken,
|
|
82
|
+
"pageSize": pageSize,
|
|
83
83
|
"startBlock": startBlock,
|
|
84
84
|
"endBlock": endBlock,
|
|
85
85
|
"sortOrder": sortOrder
|
|
@@ -91,8 +91,8 @@ class EvmTransactionsService {
|
|
|
91
91
|
address,
|
|
92
92
|
startBlock,
|
|
93
93
|
endBlock,
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
pageToken,
|
|
95
|
+
pageSize = 10
|
|
96
96
|
}) {
|
|
97
97
|
return this.httpRequest.request({
|
|
98
98
|
method: "GET",
|
|
@@ -104,8 +104,8 @@ class EvmTransactionsService {
|
|
|
104
104
|
query: {
|
|
105
105
|
"startBlock": startBlock,
|
|
106
106
|
"endBlock": endBlock,
|
|
107
|
-
"
|
|
108
|
-
"
|
|
107
|
+
"pageToken": pageToken,
|
|
108
|
+
"pageSize": pageSize
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
@@ -114,8 +114,8 @@ class EvmTransactionsService {
|
|
|
114
114
|
address,
|
|
115
115
|
startBlock,
|
|
116
116
|
endBlock,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
pageToken,
|
|
118
|
+
pageSize = 10
|
|
119
119
|
}) {
|
|
120
120
|
return this.httpRequest.request({
|
|
121
121
|
method: "GET",
|
|
@@ -127,8 +127,8 @@ class EvmTransactionsService {
|
|
|
127
127
|
query: {
|
|
128
128
|
"startBlock": startBlock,
|
|
129
129
|
"endBlock": endBlock,
|
|
130
|
-
"
|
|
131
|
-
"
|
|
130
|
+
"pageToken": pageToken,
|
|
131
|
+
"pageSize": pageSize
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
134
|
}
|
|
@@ -137,8 +137,8 @@ class EvmTransactionsService {
|
|
|
137
137
|
address,
|
|
138
138
|
startBlock,
|
|
139
139
|
endBlock,
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
pageToken,
|
|
141
|
+
pageSize = 10
|
|
142
142
|
}) {
|
|
143
143
|
return this.httpRequest.request({
|
|
144
144
|
method: "GET",
|
|
@@ -150,8 +150,8 @@ class EvmTransactionsService {
|
|
|
150
150
|
query: {
|
|
151
151
|
"startBlock": startBlock,
|
|
152
152
|
"endBlock": endBlock,
|
|
153
|
-
"
|
|
154
|
-
"
|
|
153
|
+
"pageToken": pageToken,
|
|
154
|
+
"pageSize": pageSize
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
}
|
|
@@ -160,8 +160,8 @@ class EvmTransactionsService {
|
|
|
160
160
|
address,
|
|
161
161
|
startBlock,
|
|
162
162
|
endBlock,
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
pageToken,
|
|
164
|
+
pageSize = 10
|
|
165
165
|
}) {
|
|
166
166
|
return this.httpRequest.request({
|
|
167
167
|
method: "GET",
|
|
@@ -173,8 +173,8 @@ class EvmTransactionsService {
|
|
|
173
173
|
query: {
|
|
174
174
|
"startBlock": startBlock,
|
|
175
175
|
"endBlock": endBlock,
|
|
176
|
-
"
|
|
177
|
-
"
|
|
176
|
+
"pageToken": pageToken,
|
|
177
|
+
"pageSize": pageSize
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
}
|
|
@@ -183,8 +183,8 @@ class EvmTransactionsService {
|
|
|
183
183
|
address,
|
|
184
184
|
startBlock,
|
|
185
185
|
endBlock,
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
pageToken,
|
|
187
|
+
pageSize = 10
|
|
188
188
|
}) {
|
|
189
189
|
return this.httpRequest.request({
|
|
190
190
|
method: "GET",
|
|
@@ -196,8 +196,8 @@ class EvmTransactionsService {
|
|
|
196
196
|
query: {
|
|
197
197
|
"startBlock": startBlock,
|
|
198
198
|
"endBlock": endBlock,
|
|
199
|
-
"
|
|
200
|
-
"
|
|
199
|
+
"pageToken": pageToken,
|
|
200
|
+
"pageSize": pageSize
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
}
|
|
@@ -229,8 +229,8 @@ class EvmTransactionsService {
|
|
|
229
229
|
}
|
|
230
230
|
listLatestTransactions({
|
|
231
231
|
chainId,
|
|
232
|
-
pageSize = 10,
|
|
233
232
|
pageToken,
|
|
233
|
+
pageSize = 10,
|
|
234
234
|
status
|
|
235
235
|
}) {
|
|
236
236
|
return this.httpRequest.request({
|
|
@@ -240,8 +240,8 @@ class EvmTransactionsService {
|
|
|
240
240
|
"chainId": chainId
|
|
241
241
|
},
|
|
242
242
|
query: {
|
|
243
|
-
"pageSize": pageSize,
|
|
244
243
|
"pageToken": pageToken,
|
|
244
|
+
"pageSize": pageSize,
|
|
245
245
|
"status": status
|
|
246
246
|
}
|
|
247
247
|
});
|