@avalabs/glacier-sdk 2.8.0-canary.f35ad12.0 → 2.8.0-canary.f5f193e.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 +1077 -479
- package/dist/index.js +462 -153
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +32 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/request.js +14 -31
- 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/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/ImageAsset.d.ts +0 -3
- 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/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/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/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 +17 -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 +74 -0
- package/esm/generated/services/DefaultService.js +61 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- 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 +51 -31
- package/esm/generated/services/PrimaryNetworkService.js +27 -17
- 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/index.d.ts +25 -1
- package/esm/index.js +20 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -25,8 +25,8 @@ class EvmBalancesService {
|
|
|
25
25
|
chainId,
|
|
26
26
|
address,
|
|
27
27
|
blockNumber,
|
|
28
|
-
pageSize = 10,
|
|
29
28
|
pageToken,
|
|
29
|
+
pageSize = 10,
|
|
30
30
|
contractAddresses,
|
|
31
31
|
currency
|
|
32
32
|
}) {
|
|
@@ -39,8 +39,8 @@ class EvmBalancesService {
|
|
|
39
39
|
},
|
|
40
40
|
query: {
|
|
41
41
|
"blockNumber": blockNumber,
|
|
42
|
-
"pageSize": pageSize,
|
|
43
42
|
"pageToken": pageToken,
|
|
43
|
+
"pageSize": pageSize,
|
|
44
44
|
"contractAddresses": contractAddresses,
|
|
45
45
|
"currency": currency
|
|
46
46
|
}
|
|
@@ -49,8 +49,8 @@ class EvmBalancesService {
|
|
|
49
49
|
listErc721Balances({
|
|
50
50
|
chainId,
|
|
51
51
|
address,
|
|
52
|
-
pageSize = 10,
|
|
53
52
|
pageToken,
|
|
53
|
+
pageSize = 10,
|
|
54
54
|
contractAddress
|
|
55
55
|
}) {
|
|
56
56
|
return this.httpRequest.request({
|
|
@@ -61,8 +61,8 @@ class EvmBalancesService {
|
|
|
61
61
|
"address": address
|
|
62
62
|
},
|
|
63
63
|
query: {
|
|
64
|
-
"pageSize": pageSize,
|
|
65
64
|
"pageToken": pageToken,
|
|
65
|
+
"pageSize": pageSize,
|
|
66
66
|
"contractAddress": contractAddress
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -71,8 +71,8 @@ class EvmBalancesService {
|
|
|
71
71
|
chainId,
|
|
72
72
|
address,
|
|
73
73
|
blockNumber,
|
|
74
|
-
pageSize = 10,
|
|
75
74
|
pageToken,
|
|
75
|
+
pageSize = 10,
|
|
76
76
|
contractAddress
|
|
77
77
|
}) {
|
|
78
78
|
return this.httpRequest.request({
|
|
@@ -84,8 +84,8 @@ class EvmBalancesService {
|
|
|
84
84
|
},
|
|
85
85
|
query: {
|
|
86
86
|
"blockNumber": blockNumber,
|
|
87
|
-
"pageSize": pageSize,
|
|
88
87
|
"pageToken": pageToken,
|
|
88
|
+
"pageSize": pageSize,
|
|
89
89
|
"contractAddress": contractAddress
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -93,8 +93,8 @@ class EvmBalancesService {
|
|
|
93
93
|
listCollectibleBalances({
|
|
94
94
|
chainId,
|
|
95
95
|
address,
|
|
96
|
-
pageSize = 10,
|
|
97
96
|
pageToken,
|
|
97
|
+
pageSize = 10,
|
|
98
98
|
contractAddress
|
|
99
99
|
}) {
|
|
100
100
|
return this.httpRequest.request({
|
|
@@ -105,8 +105,8 @@ class EvmBalancesService {
|
|
|
105
105
|
"address": address
|
|
106
106
|
},
|
|
107
107
|
query: {
|
|
108
|
-
"pageSize": pageSize,
|
|
109
108
|
"pageToken": pageToken,
|
|
109
|
+
"pageSize": pageSize,
|
|
110
110
|
"contractAddress": contractAddress
|
|
111
111
|
}
|
|
112
112
|
});
|
|
@@ -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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
17
|
+
* A supported evm chain id, chain alias or blockchain 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
|
|
@@ -34,7 +34,7 @@ declare class EvmBlocksService {
|
|
|
34
34
|
*/
|
|
35
35
|
getBlock({ chainId, blockId, }: {
|
|
36
36
|
/**
|
|
37
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
37
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
38
|
*/
|
|
39
39
|
chainId: string;
|
|
40
40
|
/**
|
|
@@ -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
|
}
|
|
@@ -27,7 +27,7 @@ declare class EvmChainsService {
|
|
|
27
27
|
*/
|
|
28
28
|
getChainInfo({ chainId, }: {
|
|
29
29
|
/**
|
|
30
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
30
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
31
31
|
*/
|
|
32
32
|
chainId: string;
|
|
33
33
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -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, chain alias or blockchain 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, chain alias or blockchain 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 };
|
|
@@ -24,7 +24,7 @@ declare class EvmTransactionsService {
|
|
|
24
24
|
*/
|
|
25
25
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
26
26
|
/**
|
|
27
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
27
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
28
28
|
*/
|
|
29
29
|
chainId: string;
|
|
30
30
|
/**
|
|
@@ -42,23 +42,23 @@ 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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
47
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
48
48
|
*/
|
|
49
49
|
chainId: string;
|
|
50
50
|
/**
|
|
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,25 +66,31 @@ 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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
71
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
72
72
|
*/
|
|
73
73
|
chainId: string;
|
|
74
74
|
/**
|
|
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,24 +100,30 @@ 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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
105
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
100
106
|
*/
|
|
101
107
|
chainId: string;
|
|
102
108
|
/**
|
|
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,25 +136,31 @@ 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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
130
142
|
*/
|
|
131
143
|
chainId: string;
|
|
132
144
|
/**
|
|
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,25 +168,31 @@ 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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
173
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
156
174
|
*/
|
|
157
175
|
chainId: string;
|
|
158
176
|
/**
|
|
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,25 +200,31 @@ 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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
205
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
182
206
|
*/
|
|
183
207
|
chainId: string;
|
|
184
208
|
/**
|
|
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,25 +232,31 @@ 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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
237
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
208
238
|
*/
|
|
209
239
|
chainId: string;
|
|
210
240
|
/**
|
|
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,25 +266,31 @@ 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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
271
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
236
272
|
*/
|
|
237
273
|
chainId: string;
|
|
238
274
|
/**
|
|
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
|
|
@@ -258,7 +300,7 @@ declare class EvmTransactionsService {
|
|
|
258
300
|
*/
|
|
259
301
|
getTransaction({ chainId, txHash, }: {
|
|
260
302
|
/**
|
|
261
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
303
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
262
304
|
*/
|
|
263
305
|
chainId: string;
|
|
264
306
|
/**
|
|
@@ -274,7 +316,7 @@ declare class EvmTransactionsService {
|
|
|
274
316
|
*/
|
|
275
317
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
276
318
|
/**
|
|
277
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
319
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
278
320
|
*/
|
|
279
321
|
chainId: string;
|
|
280
322
|
/**
|
|
@@ -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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
335
|
+
* A supported evm chain id, chain alias or blockchain 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
|
*/
|