@avalabs/glacier-sdk 2.8.0-canary.fedc8b0.0 → 3.0.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/LICENSE.md +9 -0
- package/dist/index.d.ts +61 -34
- package/dist/index.js +1 -2281
- package/esm/generated/Glacier.js +1 -77
- package/esm/generated/core/ApiError.js +1 -18
- package/esm/generated/core/BaseHttpRequest.js +1 -7
- package/esm/generated/core/CancelablePromise.js +1 -93
- package/esm/generated/core/FetchHttpRequest.js +1 -13
- package/esm/generated/core/OpenAPI.js +1 -13
- package/esm/generated/core/request.js +1 -228
- package/esm/generated/models/ActiveDelegatorDetails.js +1 -8
- package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
- package/esm/generated/models/ActiveValidatorDetails.js +1 -8
- package/esm/generated/models/AddressActivityMetadata.d.ts +1 -1
- package/esm/generated/models/BlockchainId.js +1 -13
- package/esm/generated/models/BlockchainIds.js +1 -10
- package/esm/generated/models/BlsCredentials.d.ts +6 -0
- package/esm/generated/models/CChainExportTransaction.js +1 -8
- package/esm/generated/models/CChainImportTransaction.js +1 -8
- package/esm/generated/models/ChainStatus.js +1 -7
- package/esm/generated/models/CompletedDelegatorDetails.js +1 -8
- package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
- package/esm/generated/models/CompletedValidatorDetails.js +1 -8
- package/esm/generated/models/ContractSubmissionErc1155.js +1 -8
- package/esm/generated/models/ContractSubmissionErc20.js +1 -8
- package/esm/generated/models/ContractSubmissionErc721.js +1 -8
- package/esm/generated/models/ContractSubmissionUnknown.js +1 -8
- package/esm/generated/models/{RegisterWebhookRequest.d.ts → CreateWebhookRequest.d.ts} +4 -2
- package/esm/generated/models/CurrencyCode.js +1 -19
- package/esm/generated/models/DelegationStatusType.js +1 -8
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -8
- package/esm/generated/models/DeliveredTeleporterMessage.js +1 -8
- package/esm/generated/models/EVMOperationType.js +1 -6
- package/esm/generated/models/Erc1155Contract.js +1 -8
- package/esm/generated/models/Erc1155Token.js +1 -8
- package/esm/generated/models/Erc1155TokenBalance.js +1 -8
- package/esm/generated/models/Erc20Contract.js +1 -8
- package/esm/generated/models/Erc20Token.js +1 -8
- package/esm/generated/models/Erc20TokenBalance.js +1 -8
- package/esm/generated/models/Erc721Contract.js +1 -8
- package/esm/generated/models/Erc721Token.js +1 -8
- package/esm/generated/models/Erc721TokenBalance.js +1 -8
- package/esm/generated/models/EventType.js +1 -6
- package/esm/generated/models/GlacierApiFeature.js +1 -7
- package/esm/generated/models/InternalTransactionOpCall.js +1 -12
- package/esm/generated/models/Network.js +1 -7
- package/esm/generated/models/NetworkType.js +1 -7
- package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
- package/esm/generated/models/OperationStatus.js +1 -9
- package/esm/generated/models/OperationStatusCode.js +1 -8
- package/esm/generated/models/OperationType.js +1 -9
- package/esm/generated/models/PChainId.js +1 -7
- package/esm/generated/models/PChainTransaction.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -21
- package/esm/generated/models/PendingDelegatorDetails.js +1 -8
- package/esm/generated/models/PendingTeleporterMessage.js +1 -8
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingValidatorDetails.js +1 -8
- package/esm/generated/models/PrimaryNetwork.js +1 -7
- package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -7
- package/esm/generated/models/PrimaryNetworkAssetType.js +1 -7
- package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
- package/esm/generated/models/PrimaryNetworkOperationType.js +1 -8
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -23
- package/esm/generated/models/RemovedValidatorDetails.d.ts +6 -0
- package/esm/generated/models/RemovedValidatorDetails.js +1 -8
- package/esm/generated/models/ResourceLinkType.js +1 -23
- package/esm/generated/models/RewardType.js +1 -8
- package/esm/generated/models/SortByOption.js +1 -10
- package/esm/generated/models/SortOrder.js +1 -7
- package/esm/generated/models/TeleporterRewardDetails.js +1 -8
- package/esm/generated/models/TransactionMethodType.js +1 -8
- package/esm/generated/models/TransactionStatus.js +1 -7
- package/esm/generated/models/UnknownContract.js +1 -8
- package/esm/generated/models/UtxoType.js +1 -7
- package/esm/generated/models/ValidationStatusType.js +1 -9
- package/esm/generated/models/VmName.js +1 -8
- package/esm/generated/models/WebhookStatus.js +1 -7
- package/esm/generated/models/WebhookStatusType.js +1 -7
- package/esm/generated/models/XChainId.js +1 -8
- package/esm/generated/models/XChainLinearTransaction.js +1 -9
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
- package/esm/generated/models/XChainTransactionType.js +1 -11
- package/esm/generated/services/DefaultService.js +1 -13
- package/esm/generated/services/EvmBalancesService.js +1 -118
- package/esm/generated/services/EvmBlocksService.js +1 -37
- package/esm/generated/services/EvmChainsService.js +1 -31
- package/esm/generated/services/EvmContractsService.js +1 -36
- package/esm/generated/services/EvmTransactionsService.js +1 -251
- package/esm/generated/services/HealthCheckService.js +1 -16
- package/esm/generated/services/NfTsService.js +1 -56
- package/esm/generated/services/OperationsService.js +1 -28
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -55
- package/esm/generated/services/PrimaryNetworkService.js +1 -177
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
- package/esm/generated/services/RpcService.js +1 -24
- package/esm/generated/services/TeleporterService.js +1 -41
- package/esm/generated/services/WebhooksService.d.ts +9 -9
- package/esm/generated/services/WebhooksService.js +1 -125
- package/esm/index.d.ts +2 -1
- package/esm/index.js +1 -89
- package/package.json +2 -2
|
@@ -1,56 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
reindexNft({
|
|
6
|
-
chainId,
|
|
7
|
-
address,
|
|
8
|
-
tokenId
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "POST",
|
|
12
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
13
|
-
path: {
|
|
14
|
-
"chainId": chainId,
|
|
15
|
-
"address": address,
|
|
16
|
-
"tokenId": tokenId
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
listTokens({
|
|
21
|
-
chainId,
|
|
22
|
-
address,
|
|
23
|
-
pageToken,
|
|
24
|
-
pageSize = 10
|
|
25
|
-
}) {
|
|
26
|
-
return this.httpRequest.request({
|
|
27
|
-
method: "GET",
|
|
28
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
|
|
29
|
-
path: {
|
|
30
|
-
"chainId": chainId,
|
|
31
|
-
"address": address
|
|
32
|
-
},
|
|
33
|
-
query: {
|
|
34
|
-
"pageToken": pageToken,
|
|
35
|
-
"pageSize": pageSize
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
getTokenDetails({
|
|
40
|
-
chainId,
|
|
41
|
-
address,
|
|
42
|
-
tokenId
|
|
43
|
-
}) {
|
|
44
|
-
return this.httpRequest.request({
|
|
45
|
-
method: "GET",
|
|
46
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
47
|
-
path: {
|
|
48
|
-
"chainId": chainId,
|
|
49
|
-
"address": address,
|
|
50
|
-
"tokenId": tokenId
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export { NfTsService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}reindexNft({chainId:e,address:t,tokenId:s}){return this.httpRequest.request({method:"POST",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",path:{chainId:e,address:t,tokenId:s}})}listTokens({chainId:e,address:t,pageToken:s,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens",path:{chainId:e,address:t},query:{pageToken:s,pageSize:d}})}getTokenDetails({chainId:e,address:t,tokenId:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",path:{chainId:e,address:t,tokenId:s}})}}export{e as NfTsService};
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getOperationResult({
|
|
6
|
-
operationId
|
|
7
|
-
}) {
|
|
8
|
-
return this.httpRequest.request({
|
|
9
|
-
method: "GET",
|
|
10
|
-
url: "/v1/operations/{operationId}",
|
|
11
|
-
path: {
|
|
12
|
-
"operationId": operationId
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
postTransactionExportJob({
|
|
17
|
-
requestBody
|
|
18
|
-
}) {
|
|
19
|
-
return this.httpRequest.request({
|
|
20
|
-
method: "POST",
|
|
21
|
-
url: "/v1/operations/transactions:export",
|
|
22
|
-
body: requestBody,
|
|
23
|
-
mediaType: "application/json"
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { OperationsService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}getOperationResult({operationId:t}){return this.httpRequest.request({method:"GET",url:"/v1/operations/{operationId}",path:{operationId:t}})}postTransactionExportJob({requestBody:t}){return this.httpRequest.request({method:"POST",url:"/v1/operations/transactions:export",body:t,mediaType:"application/json"})}}export{t as OperationsService};
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getBalancesByAddresses({
|
|
6
|
-
blockchainId,
|
|
7
|
-
network,
|
|
8
|
-
blockTimestamp,
|
|
9
|
-
addresses
|
|
10
|
-
}) {
|
|
11
|
-
return this.httpRequest.request({
|
|
12
|
-
method: "GET",
|
|
13
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/balances",
|
|
14
|
-
path: {
|
|
15
|
-
"blockchainId": blockchainId,
|
|
16
|
-
"network": network
|
|
17
|
-
},
|
|
18
|
-
query: {
|
|
19
|
-
"blockTimestamp": blockTimestamp,
|
|
20
|
-
"addresses": addresses
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { PrimaryNetworkBalancesService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getBalancesByAddresses({blockchainId:e,network:s,blockTimestamp:t,addresses:c}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/balances",path:{blockchainId:e,network:s},query:{blockTimestamp:t,addresses:c}})}}export{e as PrimaryNetworkBalancesService};
|
|
@@ -1,62 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getBlockById({
|
|
6
|
-
blockchainId,
|
|
7
|
-
network,
|
|
8
|
-
blockId
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "GET",
|
|
12
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",
|
|
13
|
-
path: {
|
|
14
|
-
"blockchainId": blockchainId,
|
|
15
|
-
"network": network,
|
|
16
|
-
"blockId": blockId
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
listPrimaryNetworkBlocksByNodeId({
|
|
21
|
-
blockchainId,
|
|
22
|
-
network,
|
|
23
|
-
nodeId,
|
|
24
|
-
pageToken,
|
|
25
|
-
pageSize = 10
|
|
26
|
-
}) {
|
|
27
|
-
return this.httpRequest.request({
|
|
28
|
-
method: "GET",
|
|
29
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",
|
|
30
|
-
path: {
|
|
31
|
-
"blockchainId": blockchainId,
|
|
32
|
-
"network": network,
|
|
33
|
-
"nodeId": nodeId
|
|
34
|
-
},
|
|
35
|
-
query: {
|
|
36
|
-
"pageToken": pageToken,
|
|
37
|
-
"pageSize": pageSize
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
listLatestPrimaryNetworkBlocks({
|
|
42
|
-
blockchainId,
|
|
43
|
-
network,
|
|
44
|
-
pageToken,
|
|
45
|
-
pageSize = 10
|
|
46
|
-
}) {
|
|
47
|
-
return this.httpRequest.request({
|
|
48
|
-
method: "GET",
|
|
49
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/blocks",
|
|
50
|
-
path: {
|
|
51
|
-
"blockchainId": blockchainId,
|
|
52
|
-
"network": network
|
|
53
|
-
},
|
|
54
|
-
query: {
|
|
55
|
-
"pageToken": pageToken,
|
|
56
|
-
"pageSize": pageSize
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { PrimaryNetworkBlocksService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getBlockById({blockchainId:e,network:o,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",path:{blockchainId:e,network:o,blockId:t}})}listPrimaryNetworkBlocksByNodeId({blockchainId:e,network:o,nodeId:t,pageToken:k,pageSize:c=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",path:{blockchainId:e,network:o,nodeId:t},query:{pageToken:k,pageSize:c}})}listLatestPrimaryNetworkBlocks({blockchainId:e,network:o,pageToken:t,pageSize:k=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks",path:{blockchainId:e,network:o},query:{pageToken:t,pageSize:k}})}}export{e as PrimaryNetworkBlocksService};
|
|
@@ -1,55 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
listPendingPrimaryNetworkRewards({
|
|
6
|
-
network,
|
|
7
|
-
addresses,
|
|
8
|
-
pageToken,
|
|
9
|
-
pageSize = 10,
|
|
10
|
-
nodeIds,
|
|
11
|
-
sortOrder
|
|
12
|
-
}) {
|
|
13
|
-
return this.httpRequest.request({
|
|
14
|
-
method: "GET",
|
|
15
|
-
url: "/v1/networks/{network}/rewards:listPending",
|
|
16
|
-
path: {
|
|
17
|
-
"network": network
|
|
18
|
-
},
|
|
19
|
-
query: {
|
|
20
|
-
"addresses": addresses,
|
|
21
|
-
"pageToken": pageToken,
|
|
22
|
-
"pageSize": pageSize,
|
|
23
|
-
"nodeIds": nodeIds,
|
|
24
|
-
"sortOrder": sortOrder
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
listHistoricalPrimaryNetworkRewards({
|
|
29
|
-
network,
|
|
30
|
-
addresses,
|
|
31
|
-
pageToken,
|
|
32
|
-
pageSize = 10,
|
|
33
|
-
nodeIds,
|
|
34
|
-
sortOrder,
|
|
35
|
-
currency
|
|
36
|
-
}) {
|
|
37
|
-
return this.httpRequest.request({
|
|
38
|
-
method: "GET",
|
|
39
|
-
url: "/v1/networks/{network}/rewards",
|
|
40
|
-
path: {
|
|
41
|
-
"network": network
|
|
42
|
-
},
|
|
43
|
-
query: {
|
|
44
|
-
"addresses": addresses,
|
|
45
|
-
"pageToken": pageToken,
|
|
46
|
-
"pageSize": pageSize,
|
|
47
|
-
"nodeIds": nodeIds,
|
|
48
|
-
"sortOrder": sortOrder,
|
|
49
|
-
"currency": currency
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { PrimaryNetworkRewardsService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}listPendingPrimaryNetworkRewards({network:e,addresses:r,pageToken:s,pageSize:t=10,nodeIds:d,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards:listPending",path:{network:e},query:{addresses:r,pageToken:s,pageSize:t,nodeIds:d,sortOrder:o}})}listHistoricalPrimaryNetworkRewards({network:e,addresses:r,pageToken:s,pageSize:t=10,nodeIds:d,sortOrder:o,currency:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards",path:{network:e},query:{addresses:r,pageToken:s,pageSize:t,nodeIds:d,sortOrder:o,currency:n}})}}export{e as PrimaryNetworkRewardsService};
|
|
@@ -1,177 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getAssetDetails({
|
|
6
|
-
blockchainId,
|
|
7
|
-
network,
|
|
8
|
-
assetId
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "GET",
|
|
12
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",
|
|
13
|
-
path: {
|
|
14
|
-
"blockchainId": blockchainId,
|
|
15
|
-
"network": network,
|
|
16
|
-
"assetId": assetId
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
getChainIdsForAddresses({
|
|
21
|
-
addresses,
|
|
22
|
-
network
|
|
23
|
-
}) {
|
|
24
|
-
return this.httpRequest.request({
|
|
25
|
-
method: "GET",
|
|
26
|
-
url: "/v1/networks/{network}/addresses:listChainIds",
|
|
27
|
-
path: {
|
|
28
|
-
"network": network
|
|
29
|
-
},
|
|
30
|
-
query: {
|
|
31
|
-
"addresses": addresses
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
getNetworkDetails({
|
|
36
|
-
network
|
|
37
|
-
}) {
|
|
38
|
-
return this.httpRequest.request({
|
|
39
|
-
method: "GET",
|
|
40
|
-
url: "/v1/networks/{network}",
|
|
41
|
-
path: {
|
|
42
|
-
"network": network
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
listBlockchains({
|
|
47
|
-
network,
|
|
48
|
-
pageToken,
|
|
49
|
-
pageSize = 10,
|
|
50
|
-
sortOrder
|
|
51
|
-
}) {
|
|
52
|
-
return this.httpRequest.request({
|
|
53
|
-
method: "GET",
|
|
54
|
-
url: "/v1/networks/{network}/blockchains",
|
|
55
|
-
path: {
|
|
56
|
-
"network": network
|
|
57
|
-
},
|
|
58
|
-
query: {
|
|
59
|
-
"pageToken": pageToken,
|
|
60
|
-
"pageSize": pageSize,
|
|
61
|
-
"sortOrder": sortOrder
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
listSubnets({
|
|
66
|
-
network,
|
|
67
|
-
pageToken,
|
|
68
|
-
pageSize = 10,
|
|
69
|
-
sortOrder
|
|
70
|
-
}) {
|
|
71
|
-
return this.httpRequest.request({
|
|
72
|
-
method: "GET",
|
|
73
|
-
url: "/v1/networks/{network}/subnets",
|
|
74
|
-
path: {
|
|
75
|
-
"network": network
|
|
76
|
-
},
|
|
77
|
-
query: {
|
|
78
|
-
"pageToken": pageToken,
|
|
79
|
-
"pageSize": pageSize,
|
|
80
|
-
"sortOrder": sortOrder
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
listValidators({
|
|
85
|
-
network,
|
|
86
|
-
pageToken,
|
|
87
|
-
pageSize = 10,
|
|
88
|
-
nodeIds,
|
|
89
|
-
sortBy,
|
|
90
|
-
sortOrder,
|
|
91
|
-
validationStatus,
|
|
92
|
-
minDelegationCapacity,
|
|
93
|
-
maxDelegationCapacity,
|
|
94
|
-
minTimeRemaining,
|
|
95
|
-
maxTimeRemaining,
|
|
96
|
-
minFeePercentage,
|
|
97
|
-
maxFeePercentage,
|
|
98
|
-
minUptimePerformance,
|
|
99
|
-
maxUptimePerformance,
|
|
100
|
-
subnetId
|
|
101
|
-
}) {
|
|
102
|
-
return this.httpRequest.request({
|
|
103
|
-
method: "GET",
|
|
104
|
-
url: "/v1/networks/{network}/validators",
|
|
105
|
-
path: {
|
|
106
|
-
"network": network
|
|
107
|
-
},
|
|
108
|
-
query: {
|
|
109
|
-
"pageToken": pageToken,
|
|
110
|
-
"pageSize": pageSize,
|
|
111
|
-
"nodeIds": nodeIds,
|
|
112
|
-
"sortBy": sortBy,
|
|
113
|
-
"sortOrder": sortOrder,
|
|
114
|
-
"validationStatus": validationStatus,
|
|
115
|
-
"minDelegationCapacity": minDelegationCapacity,
|
|
116
|
-
"maxDelegationCapacity": maxDelegationCapacity,
|
|
117
|
-
"minTimeRemaining": minTimeRemaining,
|
|
118
|
-
"maxTimeRemaining": maxTimeRemaining,
|
|
119
|
-
"minFeePercentage": minFeePercentage,
|
|
120
|
-
"maxFeePercentage": maxFeePercentage,
|
|
121
|
-
"minUptimePerformance": minUptimePerformance,
|
|
122
|
-
"maxUptimePerformance": maxUptimePerformance,
|
|
123
|
-
"subnetId": subnetId
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
getSingleValidatorDetails({
|
|
128
|
-
network,
|
|
129
|
-
nodeId,
|
|
130
|
-
pageToken,
|
|
131
|
-
pageSize = 10,
|
|
132
|
-
validationStatus,
|
|
133
|
-
sortOrder
|
|
134
|
-
}) {
|
|
135
|
-
return this.httpRequest.request({
|
|
136
|
-
method: "GET",
|
|
137
|
-
url: "/v1/networks/{network}/validators/{nodeId}",
|
|
138
|
-
path: {
|
|
139
|
-
"network": network,
|
|
140
|
-
"nodeId": nodeId
|
|
141
|
-
},
|
|
142
|
-
query: {
|
|
143
|
-
"pageToken": pageToken,
|
|
144
|
-
"pageSize": pageSize,
|
|
145
|
-
"validationStatus": validationStatus,
|
|
146
|
-
"sortOrder": sortOrder
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
listDelegators({
|
|
151
|
-
network,
|
|
152
|
-
pageToken,
|
|
153
|
-
pageSize = 10,
|
|
154
|
-
rewardAddresses,
|
|
155
|
-
sortOrder,
|
|
156
|
-
delegationStatus,
|
|
157
|
-
nodeIds
|
|
158
|
-
}) {
|
|
159
|
-
return this.httpRequest.request({
|
|
160
|
-
method: "GET",
|
|
161
|
-
url: "/v1/networks/{network}/delegators",
|
|
162
|
-
path: {
|
|
163
|
-
"network": network
|
|
164
|
-
},
|
|
165
|
-
query: {
|
|
166
|
-
"pageToken": pageToken,
|
|
167
|
-
"pageSize": pageSize,
|
|
168
|
-
"rewardAddresses": rewardAddresses,
|
|
169
|
-
"sortOrder": sortOrder,
|
|
170
|
-
"delegationStatus": delegationStatus,
|
|
171
|
-
"nodeIds": nodeIds
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export { PrimaryNetworkService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:t,assetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:t,assetId:r}})}getChainIdsForAddresses({addresses:e,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:t},query:{addresses:e}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e}})}listBlockchains({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}listSubnets({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}listValidators({network:e,pageToken:t,pageSize:r=10,nodeIds:s,sortBy:a,sortOrder:n,validationStatus:o,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:u,maxTimeRemaining:k,minFeePercentage:p,maxFeePercentage:h,minUptimePerformance:g,maxUptimePerformance:l,subnetId:m}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:t,pageSize:r,nodeIds:s,sortBy:a,sortOrder:n,validationStatus:o,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:u,maxTimeRemaining:k,minFeePercentage:p,maxFeePercentage:h,minUptimePerformance:g,maxUptimePerformance:l,subnetId:m}})}getSingleValidatorDetails({network:e,nodeId:t,pageToken:r,pageSize:s=10,validationStatus:a,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:t},query:{pageToken:r,pageSize:s,validationStatus:a,sortOrder:n}})}listDelegators({network:e,pageToken:t,pageSize:r=10,rewardAddresses:s,sortOrder:a,delegationStatus:n,nodeIds:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:t,pageSize:r,rewardAddresses:s,sortOrder:a,delegationStatus:n,nodeIds:o}})}}export{e as PrimaryNetworkService};
|
|
@@ -1,107 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getTxByHash({
|
|
6
|
-
blockchainId,
|
|
7
|
-
network,
|
|
8
|
-
txHash
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "GET",
|
|
12
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",
|
|
13
|
-
path: {
|
|
14
|
-
"blockchainId": blockchainId,
|
|
15
|
-
"network": network,
|
|
16
|
-
"txHash": txHash
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
listLatestPrimaryNetworkTransactions({
|
|
21
|
-
blockchainId,
|
|
22
|
-
network,
|
|
23
|
-
addresses,
|
|
24
|
-
txTypes,
|
|
25
|
-
startTimestamp,
|
|
26
|
-
endTimestamp,
|
|
27
|
-
pageToken,
|
|
28
|
-
pageSize = 10,
|
|
29
|
-
sortOrder
|
|
30
|
-
}) {
|
|
31
|
-
return this.httpRequest.request({
|
|
32
|
-
method: "GET",
|
|
33
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/transactions",
|
|
34
|
-
path: {
|
|
35
|
-
"blockchainId": blockchainId,
|
|
36
|
-
"network": network
|
|
37
|
-
},
|
|
38
|
-
query: {
|
|
39
|
-
"addresses": addresses,
|
|
40
|
-
"txTypes": txTypes,
|
|
41
|
-
"startTimestamp": startTimestamp,
|
|
42
|
-
"endTimestamp": endTimestamp,
|
|
43
|
-
"pageToken": pageToken,
|
|
44
|
-
"pageSize": pageSize,
|
|
45
|
-
"sortOrder": sortOrder
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
listActivePrimaryNetworkStakingTransactions({
|
|
50
|
-
blockchainId,
|
|
51
|
-
network,
|
|
52
|
-
addresses,
|
|
53
|
-
txTypes,
|
|
54
|
-
startTimestamp,
|
|
55
|
-
endTimestamp,
|
|
56
|
-
pageToken,
|
|
57
|
-
pageSize = 10,
|
|
58
|
-
sortOrder
|
|
59
|
-
}) {
|
|
60
|
-
return this.httpRequest.request({
|
|
61
|
-
method: "GET",
|
|
62
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking",
|
|
63
|
-
path: {
|
|
64
|
-
"blockchainId": blockchainId,
|
|
65
|
-
"network": network
|
|
66
|
-
},
|
|
67
|
-
query: {
|
|
68
|
-
"addresses": addresses,
|
|
69
|
-
"txTypes": txTypes,
|
|
70
|
-
"startTimestamp": startTimestamp,
|
|
71
|
-
"endTimestamp": endTimestamp,
|
|
72
|
-
"pageToken": pageToken,
|
|
73
|
-
"pageSize": pageSize,
|
|
74
|
-
"sortOrder": sortOrder
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
listAssetTransactions({
|
|
79
|
-
blockchainId,
|
|
80
|
-
network,
|
|
81
|
-
assetId,
|
|
82
|
-
txTypes,
|
|
83
|
-
startTimestamp,
|
|
84
|
-
endTimestamp,
|
|
85
|
-
pageToken,
|
|
86
|
-
pageSize = 10
|
|
87
|
-
}) {
|
|
88
|
-
return this.httpRequest.request({
|
|
89
|
-
method: "GET",
|
|
90
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions",
|
|
91
|
-
path: {
|
|
92
|
-
"blockchainId": blockchainId,
|
|
93
|
-
"network": network,
|
|
94
|
-
"assetId": assetId
|
|
95
|
-
},
|
|
96
|
-
query: {
|
|
97
|
-
"txTypes": txTypes,
|
|
98
|
-
"startTimestamp": startTimestamp,
|
|
99
|
-
"endTimestamp": endTimestamp,
|
|
100
|
-
"pageToken": pageToken,
|
|
101
|
-
"pageSize": pageSize
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export { PrimaryNetworkTransactionsService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}getTxByHash({blockchainId:t,network:e,txHash:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",path:{blockchainId:t,network:e,txHash:s}})}listLatestPrimaryNetworkTransactions({blockchainId:t,network:e,addresses:s,txTypes:a,startTimestamp:r,endTimestamp:n,pageToken:o,pageSize:i=10,sortOrder:c}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions",path:{blockchainId:t,network:e},query:{addresses:s,txTypes:a,startTimestamp:r,endTimestamp:n,pageToken:o,pageSize:i,sortOrder:c}})}listActivePrimaryNetworkStakingTransactions({blockchainId:t,network:e,addresses:s,txTypes:a,startTimestamp:r,endTimestamp:n,pageToken:o,pageSize:i=10,sortOrder:c}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking",path:{blockchainId:t,network:e},query:{addresses:s,txTypes:a,startTimestamp:r,endTimestamp:n,pageToken:o,pageSize:i,sortOrder:c}})}listAssetTransactions({blockchainId:t,network:e,assetId:s,txTypes:a,startTimestamp:r,endTimestamp:n,pageToken:o,pageSize:i=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions",path:{blockchainId:t,network:e,assetId:s},query:{txTypes:a,startTimestamp:r,endTimestamp:n,pageToken:o,pageSize:i}})}}export{t as PrimaryNetworkTransactionsService};
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getUtxosByAddresses({
|
|
6
|
-
blockchainId,
|
|
7
|
-
network,
|
|
8
|
-
addresses,
|
|
9
|
-
pageToken,
|
|
10
|
-
pageSize = 10,
|
|
11
|
-
assetId,
|
|
12
|
-
includeSpent,
|
|
13
|
-
sortOrder
|
|
14
|
-
}) {
|
|
15
|
-
return this.httpRequest.request({
|
|
16
|
-
method: "GET",
|
|
17
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/utxos",
|
|
18
|
-
path: {
|
|
19
|
-
"blockchainId": blockchainId,
|
|
20
|
-
"network": network
|
|
21
|
-
},
|
|
22
|
-
query: {
|
|
23
|
-
"addresses": addresses,
|
|
24
|
-
"pageToken": pageToken,
|
|
25
|
-
"pageSize": pageSize,
|
|
26
|
-
"assetId": assetId,
|
|
27
|
-
"includeSpent": includeSpent,
|
|
28
|
-
"sortOrder": sortOrder
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { PrimaryNetworkUtxOsService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:t,addresses:s,pageToken:r,pageSize:o=10,assetId:d,includeSpent:n,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:t},query:{addresses:s,pageToken:r,pageSize:o,assetId:d,includeSpent:n,sortOrder:a}})}}export{e as PrimaryNetworkUtxOsService};
|
|
@@ -1,64 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
listLatestXChainVertices({
|
|
6
|
-
blockchainId,
|
|
7
|
-
network,
|
|
8
|
-
pageToken,
|
|
9
|
-
pageSize = 10
|
|
10
|
-
}) {
|
|
11
|
-
return this.httpRequest.request({
|
|
12
|
-
method: "GET",
|
|
13
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/vertices",
|
|
14
|
-
path: {
|
|
15
|
-
"blockchainId": blockchainId,
|
|
16
|
-
"network": network
|
|
17
|
-
},
|
|
18
|
-
query: {
|
|
19
|
-
"pageToken": pageToken,
|
|
20
|
-
"pageSize": pageSize
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
getVertexByHash({
|
|
25
|
-
vertexHash,
|
|
26
|
-
blockchainId,
|
|
27
|
-
network
|
|
28
|
-
}) {
|
|
29
|
-
return this.httpRequest.request({
|
|
30
|
-
method: "GET",
|
|
31
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/vertices/{vertexHash}",
|
|
32
|
-
path: {
|
|
33
|
-
"vertexHash": vertexHash,
|
|
34
|
-
"blockchainId": blockchainId,
|
|
35
|
-
"network": network
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
getVertexByHeight({
|
|
40
|
-
vertexHeight,
|
|
41
|
-
blockchainId,
|
|
42
|
-
network,
|
|
43
|
-
pageToken,
|
|
44
|
-
pageSize = 10,
|
|
45
|
-
sortOrder
|
|
46
|
-
}) {
|
|
47
|
-
return this.httpRequest.request({
|
|
48
|
-
method: "GET",
|
|
49
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/vertices:listByHeight",
|
|
50
|
-
path: {
|
|
51
|
-
"blockchainId": blockchainId,
|
|
52
|
-
"network": network
|
|
53
|
-
},
|
|
54
|
-
query: {
|
|
55
|
-
"vertexHeight": vertexHeight,
|
|
56
|
-
"pageToken": pageToken,
|
|
57
|
-
"pageSize": pageSize,
|
|
58
|
-
"sortOrder": sortOrder
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { PrimaryNetworkVerticesService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}listLatestXChainVertices({blockchainId:e,network:t,pageToken:r,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices",path:{blockchainId:e,network:t},query:{pageToken:r,pageSize:o}})}getVertexByHash({vertexHash:e,blockchainId:t,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices/{vertexHash}",path:{vertexHash:e,blockchainId:t,network:r}})}getVertexByHeight({vertexHeight:e,blockchainId:t,network:r,pageToken:o,pageSize:h=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices:listByHeight",path:{blockchainId:t,network:r},query:{vertexHeight:e,pageToken:o,pageSize:h,sortOrder:n}})}}export{e as PrimaryNetworkVerticesService};
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
rpc({
|
|
6
|
-
chainId,
|
|
7
|
-
requestBody
|
|
8
|
-
}) {
|
|
9
|
-
return this.httpRequest.request({
|
|
10
|
-
method: "POST",
|
|
11
|
-
url: "/v1/ext/bc/{chainId}/rpc",
|
|
12
|
-
path: {
|
|
13
|
-
"chainId": chainId
|
|
14
|
-
},
|
|
15
|
-
body: requestBody,
|
|
16
|
-
mediaType: "application/json",
|
|
17
|
-
errors: {
|
|
18
|
-
504: `Request timed out`
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { RpcService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}rpc({chainId:t,requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/ext/bc/{chainId}/rpc",path:{chainId:t},body:e,mediaType:"application/json",errors:{504:"Request timed out"}})}}export{t as RpcService};
|