@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.35b5ae4.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 +1217 -440
- package/dist/index.js +532 -180
- package/esm/generated/Glacier.d.ts +8 -0
- package/esm/generated/Glacier.js +12 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +41 -36
- package/esm/generated/core/OpenAPI.d.ts +5 -5
- package/esm/generated/core/request.js +25 -9
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +2 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
- 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/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +2 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +13 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -4
- package/esm/generated/models/PChainTransactionType.js +8 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
- package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -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/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -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/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +30 -30
- 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 +25 -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/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +13 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -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 +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +20 -1
- package/esm/generated/services/EvmContractsService.js +16 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +90 -68
- package/esm/generated/services/EvmTransactionsService.js +33 -46
- package/esm/generated/services/NfTsService.d.ts +27 -2
- package/esm/generated/services/NfTsService.js +19 -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 +16 -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/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +44 -3
- package/esm/index.js +22 -2
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -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
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GetChainResponse } from '../models/GetChainResponse.js';
|
|
2
|
+
import { GlacierApiFeature } from '../models/GlacierApiFeature.js';
|
|
2
3
|
import { ListChainsResponse } from '../models/ListChainsResponse.js';
|
|
3
4
|
import { NetworkType } from '../models/NetworkType.js';
|
|
4
5
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
@@ -13,11 +14,15 @@ declare class EvmChainsService {
|
|
|
13
14
|
* @returns ListChainsResponse
|
|
14
15
|
* @throws ApiError
|
|
15
16
|
*/
|
|
16
|
-
supportedChains({ network, }: {
|
|
17
|
+
supportedChains({ network, feature, }: {
|
|
17
18
|
/**
|
|
18
19
|
* mainnet or testnet.
|
|
19
20
|
*/
|
|
20
21
|
network?: NetworkType;
|
|
22
|
+
/**
|
|
23
|
+
* Filter by feature.
|
|
24
|
+
*/
|
|
25
|
+
feature?: GlacierApiFeature;
|
|
21
26
|
}): CancelablePromise<ListChainsResponse>;
|
|
22
27
|
/**
|
|
23
28
|
* Get chain information
|
|
@@ -27,7 +32,7 @@ declare class EvmChainsService {
|
|
|
27
32
|
*/
|
|
28
33
|
getChainInfo({ chainId, }: {
|
|
29
34
|
/**
|
|
30
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
35
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
31
36
|
*/
|
|
32
37
|
chainId: string;
|
|
33
38
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -3,13 +3,15 @@ class EvmChainsService {
|
|
|
3
3
|
this.httpRequest = httpRequest;
|
|
4
4
|
}
|
|
5
5
|
supportedChains({
|
|
6
|
-
network
|
|
6
|
+
network,
|
|
7
|
+
feature
|
|
7
8
|
}) {
|
|
8
9
|
return this.httpRequest.request({
|
|
9
10
|
method: "GET",
|
|
10
11
|
url: "/v1/chains",
|
|
11
12
|
query: {
|
|
12
|
-
"network": network
|
|
13
|
+
"network": network,
|
|
14
|
+
"feature": feature
|
|
13
15
|
}
|
|
14
16
|
});
|
|
15
17
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { ContractSubmissionBody } from '../models/ContractSubmissionBody.js';
|
|
1
2
|
import { Erc1155Contract } from '../models/Erc1155Contract.js';
|
|
2
3
|
import { Erc20Contract } from '../models/Erc20Contract.js';
|
|
3
4
|
import { Erc721Contract } from '../models/Erc721Contract.js';
|
|
4
5
|
import { UnknownContract } from '../models/UnknownContract.js';
|
|
6
|
+
import { UpdateContractResponse } from '../models/UpdateContractResponse.js';
|
|
5
7
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
8
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
9
|
|
|
@@ -16,7 +18,7 @@ declare class EvmContractsService {
|
|
|
16
18
|
*/
|
|
17
19
|
getContractMetadata({ chainId, address, }: {
|
|
18
20
|
/**
|
|
19
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
21
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
20
22
|
*/
|
|
21
23
|
chainId: string;
|
|
22
24
|
/**
|
|
@@ -24,6 +26,23 @@ declare class EvmContractsService {
|
|
|
24
26
|
*/
|
|
25
27
|
address: string;
|
|
26
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>;
|
|
27
46
|
}
|
|
28
47
|
|
|
29
48
|
export { EvmContractsService };
|
|
@@ -15,6 +15,22 @@ class EvmContractsService {
|
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
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
|
+
}
|
|
18
34
|
}
|
|
19
35
|
|
|
20
36
|
export { EvmContractsService };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { CurrencyCode } from '../models/CurrencyCode.js';
|
|
2
|
-
import { Erc1155Contract } from '../models/Erc1155Contract.js';
|
|
3
|
-
import { Erc20Contract } from '../models/Erc20Contract.js';
|
|
4
|
-
import { Erc721Contract } from '../models/Erc721Contract.js';
|
|
5
2
|
import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
|
|
6
3
|
import { ListContractsResponse } from '../models/ListContractsResponse.js';
|
|
7
4
|
import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
|
|
@@ -13,7 +10,6 @@ import { ListTransactionDetailsResponse } from '../models/ListTransactionDetails
|
|
|
13
10
|
import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
|
|
14
11
|
import { SortOrder } from '../models/SortOrder.js';
|
|
15
12
|
import { TransactionStatus } from '../models/TransactionStatus.js';
|
|
16
|
-
import { UnknownContract } from '../models/UnknownContract.js';
|
|
17
13
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
18
14
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
19
15
|
|
|
@@ -28,7 +24,7 @@ declare class EvmTransactionsService {
|
|
|
28
24
|
*/
|
|
29
25
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
30
26
|
/**
|
|
31
|
-
* 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.
|
|
32
28
|
*/
|
|
33
29
|
chainId: string;
|
|
34
30
|
/**
|
|
@@ -46,65 +42,55 @@ declare class EvmTransactionsService {
|
|
|
46
42
|
* @returns ListContractsResponse
|
|
47
43
|
* @throws ApiError
|
|
48
44
|
*/
|
|
49
|
-
listContractDeployments({ chainId, address,
|
|
45
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
50
46
|
/**
|
|
51
|
-
* 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.
|
|
52
48
|
*/
|
|
53
49
|
chainId: string;
|
|
54
50
|
/**
|
|
55
51
|
* A wallet address.
|
|
56
52
|
*/
|
|
57
53
|
address: 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
54
|
/**
|
|
63
55
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
64
56
|
*/
|
|
65
57
|
pageToken?: string;
|
|
66
|
-
}): CancelablePromise<ListContractsResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* Get contract metadata
|
|
69
|
-
* Gets metadata about the contract at the given address.
|
|
70
|
-
* @returns any
|
|
71
|
-
* @throws ApiError
|
|
72
|
-
*/
|
|
73
|
-
getContractMetadata({ chainId, address, }: {
|
|
74
|
-
/**
|
|
75
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
76
|
-
*/
|
|
77
|
-
chainId: string;
|
|
78
58
|
/**
|
|
79
|
-
*
|
|
59
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
80
60
|
*/
|
|
81
|
-
|
|
82
|
-
}): CancelablePromise<
|
|
61
|
+
pageSize?: number;
|
|
62
|
+
}): CancelablePromise<ListContractsResponse>;
|
|
83
63
|
/**
|
|
84
64
|
* List ERC transfers
|
|
85
65
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
86
66
|
* @returns ListTransfersResponse
|
|
87
67
|
* @throws ApiError
|
|
88
68
|
*/
|
|
89
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
69
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
90
70
|
/**
|
|
91
|
-
* 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.
|
|
92
72
|
*/
|
|
93
73
|
chainId: string;
|
|
94
74
|
/**
|
|
95
75
|
* A wallet address.
|
|
96
76
|
*/
|
|
97
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
|
+
*/
|
|
98
81
|
startBlock?: number;
|
|
99
|
-
endBlock?: number;
|
|
100
82
|
/**
|
|
101
|
-
* 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.
|
|
102
84
|
*/
|
|
103
|
-
|
|
85
|
+
endBlock?: number;
|
|
104
86
|
/**
|
|
105
87
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
106
88
|
*/
|
|
107
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;
|
|
108
94
|
}): CancelablePromise<ListTransfersResponse>;
|
|
109
95
|
/**
|
|
110
96
|
* List transactions
|
|
@@ -114,24 +100,30 @@ declare class EvmTransactionsService {
|
|
|
114
100
|
* @returns ListTransactionDetailsResponse
|
|
115
101
|
* @throws ApiError
|
|
116
102
|
*/
|
|
117
|
-
listTransactions({ chainId, address,
|
|
103
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
118
104
|
/**
|
|
119
|
-
* 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.
|
|
120
106
|
*/
|
|
121
107
|
chainId: string;
|
|
122
108
|
/**
|
|
123
109
|
* A wallet address.
|
|
124
110
|
*/
|
|
125
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;
|
|
126
116
|
/**
|
|
127
117
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
128
118
|
*/
|
|
129
119
|
pageSize?: number;
|
|
130
120
|
/**
|
|
131
|
-
*
|
|
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.
|
|
132
122
|
*/
|
|
133
|
-
pageToken?: string;
|
|
134
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
|
+
*/
|
|
135
127
|
endBlock?: number;
|
|
136
128
|
/**
|
|
137
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.
|
|
@@ -144,25 +136,31 @@ declare class EvmTransactionsService {
|
|
|
144
136
|
* @returns ListNativeTransactionsResponse
|
|
145
137
|
* @throws ApiError
|
|
146
138
|
*/
|
|
147
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
139
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
148
140
|
/**
|
|
149
|
-
* 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.
|
|
150
142
|
*/
|
|
151
143
|
chainId: string;
|
|
152
144
|
/**
|
|
153
145
|
* A wallet address.
|
|
154
146
|
*/
|
|
155
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
|
+
*/
|
|
156
151
|
startBlock?: number;
|
|
157
|
-
endBlock?: number;
|
|
158
152
|
/**
|
|
159
|
-
* 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.
|
|
160
154
|
*/
|
|
161
|
-
|
|
155
|
+
endBlock?: number;
|
|
162
156
|
/**
|
|
163
157
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
164
158
|
*/
|
|
165
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;
|
|
166
164
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
167
165
|
/**
|
|
168
166
|
* List ERC-20 transfers
|
|
@@ -170,25 +168,31 @@ declare class EvmTransactionsService {
|
|
|
170
168
|
* @returns ListErc20TransactionsResponse
|
|
171
169
|
* @throws ApiError
|
|
172
170
|
*/
|
|
173
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
171
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
174
172
|
/**
|
|
175
|
-
* 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.
|
|
176
174
|
*/
|
|
177
175
|
chainId: string;
|
|
178
176
|
/**
|
|
179
177
|
* A wallet address.
|
|
180
178
|
*/
|
|
181
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
|
+
*/
|
|
182
183
|
startBlock?: number;
|
|
183
|
-
endBlock?: number;
|
|
184
184
|
/**
|
|
185
|
-
* 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.
|
|
186
186
|
*/
|
|
187
|
-
|
|
187
|
+
endBlock?: number;
|
|
188
188
|
/**
|
|
189
189
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
190
190
|
*/
|
|
191
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;
|
|
192
196
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
193
197
|
/**
|
|
194
198
|
* List ERC-721 transfers
|
|
@@ -196,25 +200,31 @@ declare class EvmTransactionsService {
|
|
|
196
200
|
* @returns ListErc721TransactionsResponse
|
|
197
201
|
* @throws ApiError
|
|
198
202
|
*/
|
|
199
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
203
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
200
204
|
/**
|
|
201
|
-
* 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.
|
|
202
206
|
*/
|
|
203
207
|
chainId: string;
|
|
204
208
|
/**
|
|
205
209
|
* A wallet address.
|
|
206
210
|
*/
|
|
207
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
|
+
*/
|
|
208
215
|
startBlock?: number;
|
|
209
|
-
endBlock?: number;
|
|
210
216
|
/**
|
|
211
|
-
* 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.
|
|
212
218
|
*/
|
|
213
|
-
|
|
219
|
+
endBlock?: number;
|
|
214
220
|
/**
|
|
215
221
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
216
222
|
*/
|
|
217
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;
|
|
218
228
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
219
229
|
/**
|
|
220
230
|
* List ERC-1155 transfers
|
|
@@ -222,25 +232,31 @@ declare class EvmTransactionsService {
|
|
|
222
232
|
* @returns ListErc1155TransactionsResponse
|
|
223
233
|
* @throws ApiError
|
|
224
234
|
*/
|
|
225
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
235
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
226
236
|
/**
|
|
227
|
-
* 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.
|
|
228
238
|
*/
|
|
229
239
|
chainId: string;
|
|
230
240
|
/**
|
|
231
241
|
* A wallet address.
|
|
232
242
|
*/
|
|
233
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
|
+
*/
|
|
234
247
|
startBlock?: number;
|
|
235
|
-
endBlock?: number;
|
|
236
248
|
/**
|
|
237
|
-
* 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.
|
|
238
250
|
*/
|
|
239
|
-
|
|
251
|
+
endBlock?: number;
|
|
240
252
|
/**
|
|
241
253
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
242
254
|
*/
|
|
243
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;
|
|
244
260
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
245
261
|
/**
|
|
246
262
|
* List internal transactions
|
|
@@ -250,25 +266,31 @@ declare class EvmTransactionsService {
|
|
|
250
266
|
* @returns ListInternalTransactionsResponse
|
|
251
267
|
* @throws ApiError
|
|
252
268
|
*/
|
|
253
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
269
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
254
270
|
/**
|
|
255
|
-
* 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.
|
|
256
272
|
*/
|
|
257
273
|
chainId: string;
|
|
258
274
|
/**
|
|
259
275
|
* A wallet address.
|
|
260
276
|
*/
|
|
261
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
|
+
*/
|
|
262
281
|
startBlock?: number;
|
|
263
|
-
endBlock?: number;
|
|
264
282
|
/**
|
|
265
|
-
* 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.
|
|
266
284
|
*/
|
|
267
|
-
|
|
285
|
+
endBlock?: number;
|
|
268
286
|
/**
|
|
269
287
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
270
288
|
*/
|
|
271
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;
|
|
272
294
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
273
295
|
/**
|
|
274
296
|
* Get transaction
|
|
@@ -278,7 +300,7 @@ declare class EvmTransactionsService {
|
|
|
278
300
|
*/
|
|
279
301
|
getTransaction({ chainId, txHash, }: {
|
|
280
302
|
/**
|
|
281
|
-
* 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.
|
|
282
304
|
*/
|
|
283
305
|
chainId: string;
|
|
284
306
|
/**
|
|
@@ -294,7 +316,7 @@ declare class EvmTransactionsService {
|
|
|
294
316
|
*/
|
|
295
317
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
296
318
|
/**
|
|
297
|
-
* 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.
|
|
298
320
|
*/
|
|
299
321
|
chainId: string;
|
|
300
322
|
/**
|
|
@@ -308,19 +330,19 @@ declare class EvmTransactionsService {
|
|
|
308
330
|
* @returns ListNativeTransactionsResponse
|
|
309
331
|
* @throws ApiError
|
|
310
332
|
*/
|
|
311
|
-
listLatestTransactions({ chainId,
|
|
333
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
312
334
|
/**
|
|
313
|
-
* 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.
|
|
314
336
|
*/
|
|
315
337
|
chainId: string;
|
|
316
|
-
/**
|
|
317
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
318
|
-
*/
|
|
319
|
-
pageSize?: number;
|
|
320
338
|
/**
|
|
321
339
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
322
340
|
*/
|
|
323
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;
|
|
324
346
|
/**
|
|
325
347
|
* A status filter for listed transactions.
|
|
326
348
|
*/
|