@avalabs/glacier-sdk 3.1.0-alpha.3 → 3.1.0-alpha.5
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 +291 -83
- package/dist/index.js +1 -1
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/BadGateway.d.ts +16 -0
- package/esm/generated/models/BadRequest.d.ts +16 -0
- package/esm/generated/models/Forbidden.d.ts +16 -0
- package/esm/generated/models/InternalServerError.d.ts +16 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +14 -0
- package/esm/generated/models/NotFound.d.ts +16 -0
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/TooManyRequests.d.ts +16 -0
- package/esm/generated/models/Unauthorized.d.ts +16 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
- package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
- package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
- package/esm/generated/services/EvmBalancesService.d.ts +5 -5
- package/esm/generated/services/EvmBalancesService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +2 -2
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +2 -2
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmContractsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/GlacierApiUsageMetricsService.d.ts +32 -8
- package/esm/generated/services/GlacierApiUsageMetricsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +3 -3
- package/esm/generated/services/NfTsService.js +1 -1
- package/esm/generated/services/OperationsService.d.ts +2 -2
- package/esm/generated/services/OperationsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +9 -9
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +9 -9
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
- package/esm/generated/services/RpcService.d.ts +1 -1
- package/esm/generated/services/RpcService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +2 -2
- package/esm/generated/services/TeleporterService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +10 -10
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +10 -0
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -331,7 +331,7 @@ declare class EvmBalancesService {
|
|
|
331
331
|
* Gets native token balance of a wallet address.
|
|
332
332
|
*
|
|
333
333
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
334
|
-
* @returns GetNativeBalanceResponse
|
|
334
|
+
* @returns GetNativeBalanceResponse Successful response
|
|
335
335
|
* @throws ApiError
|
|
336
336
|
*/
|
|
337
337
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
@@ -359,7 +359,7 @@ declare class EvmBalancesService {
|
|
|
359
359
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
360
360
|
*
|
|
361
361
|
* Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
|
|
362
|
-
* @returns ListErc20BalancesResponse
|
|
362
|
+
* @returns ListErc20BalancesResponse Successful response
|
|
363
363
|
* @throws ApiError
|
|
364
364
|
*/
|
|
365
365
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
@@ -401,7 +401,7 @@ declare class EvmBalancesService {
|
|
|
401
401
|
* Lists ERC-721 token balances of a wallet address.
|
|
402
402
|
*
|
|
403
403
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
404
|
-
* @returns ListErc721BalancesResponse
|
|
404
|
+
* @returns ListErc721BalancesResponse Successful response
|
|
405
405
|
* @throws ApiError
|
|
406
406
|
*/
|
|
407
407
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
@@ -433,7 +433,7 @@ declare class EvmBalancesService {
|
|
|
433
433
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
434
434
|
*
|
|
435
435
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
436
|
-
* @returns ListErc1155BalancesResponse
|
|
436
|
+
* @returns ListErc1155BalancesResponse Successful response
|
|
437
437
|
* @throws ApiError
|
|
438
438
|
*/
|
|
439
439
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
@@ -467,7 +467,7 @@ declare class EvmBalancesService {
|
|
|
467
467
|
* Lists ERC-721 and ERC-1155 token balances of a wallet address.
|
|
468
468
|
*
|
|
469
469
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
470
|
-
* @returns ListCollectibleBalancesResponse
|
|
470
|
+
* @returns ListCollectibleBalancesResponse Successful response
|
|
471
471
|
* @throws ApiError
|
|
472
472
|
*/
|
|
473
473
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
@@ -596,7 +596,7 @@ declare class EvmBlocksService {
|
|
|
596
596
|
/**
|
|
597
597
|
* List latest blocks
|
|
598
598
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
599
|
-
* @returns ListEvmBlocksResponse
|
|
599
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
600
600
|
* @throws ApiError
|
|
601
601
|
*/
|
|
602
602
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
@@ -616,7 +616,7 @@ declare class EvmBlocksService {
|
|
|
616
616
|
/**
|
|
617
617
|
* Get block
|
|
618
618
|
* Gets the details of an individual block on the EVM-compatible chain.
|
|
619
|
-
* @returns GetEvmBlockResponse
|
|
619
|
+
* @returns GetEvmBlockResponse Successful response
|
|
620
620
|
* @throws ApiError
|
|
621
621
|
*/
|
|
622
622
|
getBlock({ chainId, blockId, }: {
|
|
@@ -729,7 +729,7 @@ declare class EvmChainsService {
|
|
|
729
729
|
/**
|
|
730
730
|
* List chains
|
|
731
731
|
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
732
|
-
* @returns ListChainsResponse
|
|
732
|
+
* @returns ListChainsResponse Successful response
|
|
733
733
|
* @throws ApiError
|
|
734
734
|
*/
|
|
735
735
|
supportedChains({ network, feature, }: {
|
|
@@ -745,7 +745,7 @@ declare class EvmChainsService {
|
|
|
745
745
|
/**
|
|
746
746
|
* Get chain information
|
|
747
747
|
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
748
|
-
* @returns GetChainResponse
|
|
748
|
+
* @returns GetChainResponse Successful response
|
|
749
749
|
* @throws ApiError
|
|
750
750
|
*/
|
|
751
751
|
getChainInfo({ chainId, }: {
|
|
@@ -1040,7 +1040,7 @@ declare class EvmContractsService {
|
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Get contract metadata
|
|
1042
1042
|
* Gets metadata about the contract at the given address.
|
|
1043
|
-
* @returns any
|
|
1043
|
+
* @returns any Successful response
|
|
1044
1044
|
* @throws ApiError
|
|
1045
1045
|
*/
|
|
1046
1046
|
getContractMetadata({ chainId, address, }: {
|
|
@@ -1056,7 +1056,7 @@ declare class EvmContractsService {
|
|
|
1056
1056
|
/**
|
|
1057
1057
|
* Update contract information
|
|
1058
1058
|
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1059
|
-
* @returns UpdateContractResponse
|
|
1059
|
+
* @returns UpdateContractResponse Successful response
|
|
1060
1060
|
* @throws ApiError
|
|
1061
1061
|
*/
|
|
1062
1062
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
@@ -1584,7 +1584,7 @@ declare class EvmTransactionsService {
|
|
|
1584
1584
|
/**
|
|
1585
1585
|
* Get deployment transaction
|
|
1586
1586
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
1587
|
-
* @returns GetTransactionResponse
|
|
1587
|
+
* @returns GetTransactionResponse Successful response
|
|
1588
1588
|
* @throws ApiError
|
|
1589
1589
|
*/
|
|
1590
1590
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
@@ -1604,7 +1604,7 @@ declare class EvmTransactionsService {
|
|
|
1604
1604
|
/**
|
|
1605
1605
|
* List deployed contracts
|
|
1606
1606
|
* Lists all contracts deployed by the given address.
|
|
1607
|
-
* @returns ListContractsResponse
|
|
1607
|
+
* @returns ListContractsResponse Successful response
|
|
1608
1608
|
* @throws ApiError
|
|
1609
1609
|
*/
|
|
1610
1610
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
@@ -1628,7 +1628,7 @@ declare class EvmTransactionsService {
|
|
|
1628
1628
|
/**
|
|
1629
1629
|
* List ERC transfers
|
|
1630
1630
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
1631
|
-
* @returns ListTransfersResponse
|
|
1631
|
+
* @returns ListTransfersResponse Successful response
|
|
1632
1632
|
* @throws ApiError
|
|
1633
1633
|
*/
|
|
1634
1634
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1662,7 +1662,7 @@ declare class EvmTransactionsService {
|
|
|
1662
1662
|
* Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
|
|
1663
1663
|
*
|
|
1664
1664
|
* Filterable by block ranges.
|
|
1665
|
-
* @returns ListTransactionDetailsResponse
|
|
1665
|
+
* @returns ListTransactionDetailsResponse Successful response
|
|
1666
1666
|
* @throws ApiError
|
|
1667
1667
|
*/
|
|
1668
1668
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
@@ -1698,7 +1698,7 @@ declare class EvmTransactionsService {
|
|
|
1698
1698
|
/**
|
|
1699
1699
|
* List native transactions
|
|
1700
1700
|
* Lists native transactions for an address. Filterable by block range.
|
|
1701
|
-
* @returns ListNativeTransactionsResponse
|
|
1701
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1702
1702
|
* @throws ApiError
|
|
1703
1703
|
*/
|
|
1704
1704
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1730,7 +1730,7 @@ declare class EvmTransactionsService {
|
|
|
1730
1730
|
/**
|
|
1731
1731
|
* List ERC-20 transfers
|
|
1732
1732
|
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
1733
|
-
* @returns ListErc20TransactionsResponse
|
|
1733
|
+
* @returns ListErc20TransactionsResponse Successful response
|
|
1734
1734
|
* @throws ApiError
|
|
1735
1735
|
*/
|
|
1736
1736
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1762,7 +1762,7 @@ declare class EvmTransactionsService {
|
|
|
1762
1762
|
/**
|
|
1763
1763
|
* List ERC-721 transfers
|
|
1764
1764
|
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
1765
|
-
* @returns ListErc721TransactionsResponse
|
|
1765
|
+
* @returns ListErc721TransactionsResponse Successful response
|
|
1766
1766
|
* @throws ApiError
|
|
1767
1767
|
*/
|
|
1768
1768
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1794,7 +1794,7 @@ declare class EvmTransactionsService {
|
|
|
1794
1794
|
/**
|
|
1795
1795
|
* List ERC-1155 transfers
|
|
1796
1796
|
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
1797
|
-
* @returns ListErc1155TransactionsResponse
|
|
1797
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
1798
1798
|
* @throws ApiError
|
|
1799
1799
|
*/
|
|
1800
1800
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1828,7 +1828,7 @@ declare class EvmTransactionsService {
|
|
|
1828
1828
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
1829
1829
|
*
|
|
1830
1830
|
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
1831
|
-
* @returns ListInternalTransactionsResponse
|
|
1831
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
1832
1832
|
* @throws ApiError
|
|
1833
1833
|
*/
|
|
1834
1834
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1860,7 +1860,7 @@ declare class EvmTransactionsService {
|
|
|
1860
1860
|
/**
|
|
1861
1861
|
* Get transaction
|
|
1862
1862
|
* Gets the details of a single transaction.
|
|
1863
|
-
* @returns GetTransactionResponse
|
|
1863
|
+
* @returns GetTransactionResponse Successful response
|
|
1864
1864
|
* @throws ApiError
|
|
1865
1865
|
*/
|
|
1866
1866
|
getTransaction({ chainId, txHash, }: {
|
|
@@ -1876,7 +1876,7 @@ declare class EvmTransactionsService {
|
|
|
1876
1876
|
/**
|
|
1877
1877
|
* List transactions for a block
|
|
1878
1878
|
* Lists the transactions that occured in a given block.
|
|
1879
|
-
* @returns ListNativeTransactionsResponse
|
|
1879
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1880
1880
|
* @throws ApiError
|
|
1881
1881
|
*/
|
|
1882
1882
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
@@ -1892,7 +1892,7 @@ declare class EvmTransactionsService {
|
|
|
1892
1892
|
/**
|
|
1893
1893
|
* List latest transactions
|
|
1894
1894
|
* Lists the latest transactions. Filterable by status.
|
|
1895
|
-
* @returns ListNativeTransactionsResponse
|
|
1895
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1896
1896
|
* @throws ApiError
|
|
1897
1897
|
*/
|
|
1898
1898
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
@@ -1983,7 +1983,7 @@ type LogsFormat = {
|
|
|
1983
1983
|
/**
|
|
1984
1984
|
* The chain id of the request.
|
|
1985
1985
|
*/
|
|
1986
|
-
chainId?:
|
|
1986
|
+
chainId?: string;
|
|
1987
1987
|
/**
|
|
1988
1988
|
* The rpc method of the request.
|
|
1989
1989
|
*/
|
|
@@ -2021,9 +2021,73 @@ declare enum UsageMetricsGroupByEnum {
|
|
|
2021
2021
|
REQUEST_PATH = "requestPath",
|
|
2022
2022
|
RESPONSE_CODE = "responseCode",
|
|
2023
2023
|
CHAIN_ID = "chainId",
|
|
2024
|
-
API_KEY_ID = "apiKeyId"
|
|
2024
|
+
API_KEY_ID = "apiKeyId",
|
|
2025
|
+
REQUEST_TYPE = "requestType"
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
type UsageMetricsValueDTO = {
|
|
2029
|
+
/**
|
|
2030
|
+
* Column name used for data aggregation
|
|
2031
|
+
*/
|
|
2032
|
+
groupedBy: UsageMetricsValueDTO.groupedBy;
|
|
2033
|
+
/**
|
|
2034
|
+
* The value of the column used for data aggregation
|
|
2035
|
+
*/
|
|
2036
|
+
groupValue?: (string | number);
|
|
2037
|
+
/**
|
|
2038
|
+
* The total number of requests
|
|
2039
|
+
*/
|
|
2040
|
+
totalRequests: number;
|
|
2041
|
+
/**
|
|
2042
|
+
* The number of requests per second
|
|
2043
|
+
*/
|
|
2044
|
+
requestsPerSecond: number;
|
|
2045
|
+
/**
|
|
2046
|
+
* The success rate percentage
|
|
2047
|
+
*/
|
|
2048
|
+
successRatePercent: number;
|
|
2049
|
+
/**
|
|
2050
|
+
* The median response time in milliseconds
|
|
2051
|
+
*/
|
|
2052
|
+
medianResponseTimeMsecs: number;
|
|
2053
|
+
/**
|
|
2054
|
+
* The number of invalid requests
|
|
2055
|
+
*/
|
|
2056
|
+
invalidRequests: number;
|
|
2057
|
+
/**
|
|
2058
|
+
* The number of API credits used
|
|
2059
|
+
*/
|
|
2060
|
+
apiCreditsUsed: number;
|
|
2061
|
+
/**
|
|
2062
|
+
* The number of API credits wasted on invalid requests
|
|
2063
|
+
*/
|
|
2064
|
+
apiCreditsWasted: number;
|
|
2065
|
+
};
|
|
2066
|
+
declare namespace UsageMetricsValueDTO {
|
|
2067
|
+
/**
|
|
2068
|
+
* Column name used for data aggregation
|
|
2069
|
+
*/
|
|
2070
|
+
enum groupedBy {
|
|
2071
|
+
REQUEST_PATH = "requestPath",
|
|
2072
|
+
RESPONSE_CODE = "responseCode",
|
|
2073
|
+
CHAIN_ID = "chainId",
|
|
2074
|
+
API_KEY_ID = "apiKeyId",
|
|
2075
|
+
REQUEST_TYPE = "requestType",
|
|
2076
|
+
NONE = "None"
|
|
2077
|
+
}
|
|
2025
2078
|
}
|
|
2026
2079
|
|
|
2080
|
+
type Metric = {
|
|
2081
|
+
/**
|
|
2082
|
+
* The timestamp of the metrics value
|
|
2083
|
+
*/
|
|
2084
|
+
timestamp: number;
|
|
2085
|
+
/**
|
|
2086
|
+
* The metrics values for the timestamp
|
|
2087
|
+
*/
|
|
2088
|
+
values: Array<UsageMetricsValueDTO>;
|
|
2089
|
+
};
|
|
2090
|
+
|
|
2027
2091
|
type UsageMetricsResponseDTO = {
|
|
2028
2092
|
/**
|
|
2029
2093
|
* Duration in which the metrics value is aggregated
|
|
@@ -2036,7 +2100,7 @@ type UsageMetricsResponseDTO = {
|
|
|
2036
2100
|
/**
|
|
2037
2101
|
* Metrics values
|
|
2038
2102
|
*/
|
|
2039
|
-
metrics: Array<
|
|
2103
|
+
metrics: Array<Metric>;
|
|
2040
2104
|
};
|
|
2041
2105
|
|
|
2042
2106
|
declare class GlacierApiUsageMetricsService {
|
|
@@ -2045,10 +2109,10 @@ declare class GlacierApiUsageMetricsService {
|
|
|
2045
2109
|
/**
|
|
2046
2110
|
* Get usage metrics for the Glacier API
|
|
2047
2111
|
* Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
2048
|
-
* @returns UsageMetricsResponseDTO
|
|
2112
|
+
* @returns UsageMetricsResponseDTO Successful response
|
|
2049
2113
|
* @throws ApiError
|
|
2050
2114
|
*/
|
|
2051
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, responseStatusCode, chainId, apiKeyId, }: {
|
|
2115
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseStatusCode, chainId, apiKeyId, }: {
|
|
2052
2116
|
/**
|
|
2053
2117
|
* Organization ID to fetch usage metrics for
|
|
2054
2118
|
*/
|
|
@@ -2070,29 +2134,33 @@ declare class GlacierApiUsageMetricsService {
|
|
|
2070
2134
|
*/
|
|
2071
2135
|
groupBy?: UsageMetricsGroupByEnum;
|
|
2072
2136
|
/**
|
|
2073
|
-
* Filter
|
|
2137
|
+
* Filter data by request path.
|
|
2074
2138
|
*/
|
|
2075
2139
|
requestPath?: string;
|
|
2076
2140
|
/**
|
|
2077
|
-
* Filter
|
|
2141
|
+
* Filter data by request type.
|
|
2142
|
+
*/
|
|
2143
|
+
requestType?: 'Glacier API Request' | 'Glacier RPC Request';
|
|
2144
|
+
/**
|
|
2145
|
+
* Filter data by response status code.
|
|
2078
2146
|
*/
|
|
2079
2147
|
responseStatusCode?: string;
|
|
2080
2148
|
/**
|
|
2081
|
-
* Filter
|
|
2149
|
+
* Filter data by chain ID.
|
|
2082
2150
|
*/
|
|
2083
2151
|
chainId?: string;
|
|
2084
2152
|
/**
|
|
2085
|
-
* Filter
|
|
2153
|
+
* Filter data by API key ID.
|
|
2086
2154
|
*/
|
|
2087
2155
|
apiKeyId?: string;
|
|
2088
2156
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
2089
2157
|
/**
|
|
2090
2158
|
* Get logs for requests made by client
|
|
2091
2159
|
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
2092
|
-
* @returns LogsResponseDTO
|
|
2160
|
+
* @returns LogsResponseDTO Successful response
|
|
2093
2161
|
* @throws ApiError
|
|
2094
2162
|
*/
|
|
2095
|
-
|
|
2163
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseStatusCode, chainId, apiKeyId, pageToken, pageSize, }: {
|
|
2096
2164
|
/**
|
|
2097
2165
|
* Organization ID to fetch usage metrics for
|
|
2098
2166
|
*/
|
|
@@ -2105,6 +2173,26 @@ declare class GlacierApiUsageMetricsService {
|
|
|
2105
2173
|
* Query param for retrieving items before a specific timestamp.
|
|
2106
2174
|
*/
|
|
2107
2175
|
endTimestamp?: number;
|
|
2176
|
+
/**
|
|
2177
|
+
* Filter data by request path.
|
|
2178
|
+
*/
|
|
2179
|
+
requestPath?: string;
|
|
2180
|
+
/**
|
|
2181
|
+
* Filter data by request type.
|
|
2182
|
+
*/
|
|
2183
|
+
requestType?: 'Glacier API Request' | 'Glacier RPC Request';
|
|
2184
|
+
/**
|
|
2185
|
+
* Filter data by response status code.
|
|
2186
|
+
*/
|
|
2187
|
+
responseStatusCode?: string;
|
|
2188
|
+
/**
|
|
2189
|
+
* Filter data by chain ID.
|
|
2190
|
+
*/
|
|
2191
|
+
chainId?: string;
|
|
2192
|
+
/**
|
|
2193
|
+
* Filter data by API key ID.
|
|
2194
|
+
*/
|
|
2195
|
+
apiKeyId?: string;
|
|
2108
2196
|
/**
|
|
2109
2197
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2110
2198
|
*/
|
|
@@ -2124,7 +2212,7 @@ declare class HealthCheckService {
|
|
|
2124
2212
|
* @returns any The Health Check is successful
|
|
2125
2213
|
* @throws ApiError
|
|
2126
2214
|
*/
|
|
2127
|
-
|
|
2215
|
+
glacierHealthCheck(): CancelablePromise<{
|
|
2128
2216
|
status?: string;
|
|
2129
2217
|
info?: Record<string, Record<string, string>> | null;
|
|
2130
2218
|
error?: Record<string, Record<string, string>> | null;
|
|
@@ -2146,7 +2234,7 @@ declare class NfTsService {
|
|
|
2146
2234
|
/**
|
|
2147
2235
|
* Reindex NFT metadata
|
|
2148
2236
|
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2149
|
-
* @returns any
|
|
2237
|
+
* @returns any Successful response
|
|
2150
2238
|
* @throws ApiError
|
|
2151
2239
|
*/
|
|
2152
2240
|
reindexNft({ chainId, address, tokenId, }: {
|
|
@@ -2166,7 +2254,7 @@ declare class NfTsService {
|
|
|
2166
2254
|
/**
|
|
2167
2255
|
* List tokens
|
|
2168
2256
|
* Lists tokens for an NFT contract.
|
|
2169
|
-
* @returns ListNftTokens
|
|
2257
|
+
* @returns ListNftTokens Successful response
|
|
2170
2258
|
* @throws ApiError
|
|
2171
2259
|
*/
|
|
2172
2260
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
@@ -2190,7 +2278,7 @@ declare class NfTsService {
|
|
|
2190
2278
|
/**
|
|
2191
2279
|
* Get token details
|
|
2192
2280
|
* Gets token details for a specific token of an NFT contract.
|
|
2193
|
-
* @returns any
|
|
2281
|
+
* @returns any Successful response
|
|
2194
2282
|
* @throws ApiError
|
|
2195
2283
|
*/
|
|
2196
2284
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
@@ -2308,7 +2396,7 @@ declare class OperationsService {
|
|
|
2308
2396
|
/**
|
|
2309
2397
|
* Get operation
|
|
2310
2398
|
* Gets operation details for the given operation id.
|
|
2311
|
-
* @returns OperationStatusResponse
|
|
2399
|
+
* @returns OperationStatusResponse Successful response
|
|
2312
2400
|
* @throws ApiError
|
|
2313
2401
|
*/
|
|
2314
2402
|
getOperationResult({ operationId, }: {
|
|
@@ -2322,7 +2410,7 @@ declare class OperationsService {
|
|
|
2322
2410
|
* Trigger a transaction export operation with given parameters.
|
|
2323
2411
|
*
|
|
2324
2412
|
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2325
|
-
* @returns OperationStatusResponse
|
|
2413
|
+
* @returns OperationStatusResponse Successful response
|
|
2326
2414
|
* @throws ApiError
|
|
2327
2415
|
*/
|
|
2328
2416
|
postTransactionExportJob({ requestBody, }: {
|
|
@@ -2719,7 +2807,7 @@ declare class PrimaryNetworkService {
|
|
|
2719
2807
|
/**
|
|
2720
2808
|
* Get asset details
|
|
2721
2809
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
2722
|
-
* @returns XChainAssetDetails
|
|
2810
|
+
* @returns XChainAssetDetails Successful response
|
|
2723
2811
|
* @throws ApiError
|
|
2724
2812
|
*/
|
|
2725
2813
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -2739,7 +2827,7 @@ declare class PrimaryNetworkService {
|
|
|
2739
2827
|
/**
|
|
2740
2828
|
* Get chain interactions for addresses
|
|
2741
2829
|
* Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
|
|
2742
|
-
* @returns ChainAddressChainIdMapListResponse
|
|
2830
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
2743
2831
|
* @throws ApiError
|
|
2744
2832
|
*/
|
|
2745
2833
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -2755,7 +2843,7 @@ declare class PrimaryNetworkService {
|
|
|
2755
2843
|
/**
|
|
2756
2844
|
* Get network details
|
|
2757
2845
|
* Gets network details such as validator and delegator stats.
|
|
2758
|
-
* @returns GetNetworkDetailsResponse
|
|
2846
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
2759
2847
|
* @throws ApiError
|
|
2760
2848
|
*/
|
|
2761
2849
|
getNetworkDetails({ network, }: {
|
|
@@ -2767,7 +2855,7 @@ declare class PrimaryNetworkService {
|
|
|
2767
2855
|
/**
|
|
2768
2856
|
* List blockchains
|
|
2769
2857
|
* Lists all blockchains registered on the network.
|
|
2770
|
-
* @returns ListBlockchainsResponse
|
|
2858
|
+
* @returns ListBlockchainsResponse Successful response
|
|
2771
2859
|
* @throws ApiError
|
|
2772
2860
|
*/
|
|
2773
2861
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -2791,7 +2879,7 @@ declare class PrimaryNetworkService {
|
|
|
2791
2879
|
/**
|
|
2792
2880
|
* List subnets
|
|
2793
2881
|
* Lists all subnets registered on the network.
|
|
2794
|
-
* @returns ListSubnetsResponse
|
|
2882
|
+
* @returns ListSubnetsResponse Successful response
|
|
2795
2883
|
* @throws ApiError
|
|
2796
2884
|
*/
|
|
2797
2885
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -2815,7 +2903,7 @@ declare class PrimaryNetworkService {
|
|
|
2815
2903
|
/**
|
|
2816
2904
|
* Get Subnet details by ID
|
|
2817
2905
|
* Get details of the Subnet registered on the network.
|
|
2818
|
-
* @returns Subnet
|
|
2906
|
+
* @returns Subnet Successful response
|
|
2819
2907
|
* @throws ApiError
|
|
2820
2908
|
*/
|
|
2821
2909
|
getSubnetById({ network, subnetId, }: {
|
|
@@ -2831,7 +2919,7 @@ declare class PrimaryNetworkService {
|
|
|
2831
2919
|
/**
|
|
2832
2920
|
* List validators
|
|
2833
2921
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
2834
|
-
* @returns ListValidatorDetailsResponse
|
|
2922
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2835
2923
|
* @throws ApiError
|
|
2836
2924
|
*/
|
|
2837
2925
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
@@ -2905,7 +2993,7 @@ declare class PrimaryNetworkService {
|
|
|
2905
2993
|
/**
|
|
2906
2994
|
* Get single validator details
|
|
2907
2995
|
* List validator details for a single validator. Filterable by validation status.
|
|
2908
|
-
* @returns ListValidatorDetailsResponse
|
|
2996
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2909
2997
|
* @throws ApiError
|
|
2910
2998
|
*/
|
|
2911
2999
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
@@ -2937,7 +3025,7 @@ declare class PrimaryNetworkService {
|
|
|
2937
3025
|
/**
|
|
2938
3026
|
* List delegators
|
|
2939
3027
|
* Lists details for delegators.
|
|
2940
|
-
* @returns ListDelegatorDetailsResponse
|
|
3028
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
2941
3029
|
* @throws ApiError
|
|
2942
3030
|
*/
|
|
2943
3031
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
@@ -3179,7 +3267,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3179
3267
|
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
3180
3268
|
*
|
|
3181
3269
|
* C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
|
|
3182
|
-
* @returns any
|
|
3270
|
+
* @returns any Successful response
|
|
3183
3271
|
* @throws ApiError
|
|
3184
3272
|
*/
|
|
3185
3273
|
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
@@ -3251,7 +3339,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3251
3339
|
/**
|
|
3252
3340
|
* Get block
|
|
3253
3341
|
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
3254
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
3342
|
+
* @returns GetPrimaryNetworkBlockResponse Successful response
|
|
3255
3343
|
* @throws ApiError
|
|
3256
3344
|
*/
|
|
3257
3345
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3271,7 +3359,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3271
3359
|
/**
|
|
3272
3360
|
* List blocks proposed by node
|
|
3273
3361
|
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
3274
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3362
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3275
3363
|
* @throws ApiError
|
|
3276
3364
|
*/
|
|
3277
3365
|
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
@@ -3299,7 +3387,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3299
3387
|
/**
|
|
3300
3388
|
* List latest blocks
|
|
3301
3389
|
* Lists latest blocks on one of the Primary Network chains.
|
|
3302
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3390
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3303
3391
|
* @throws ApiError
|
|
3304
3392
|
*/
|
|
3305
3393
|
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -3437,7 +3525,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3437
3525
|
/**
|
|
3438
3526
|
* List pending rewards
|
|
3439
3527
|
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
3440
|
-
* @returns ListPendingRewardsResponse
|
|
3528
|
+
* @returns ListPendingRewardsResponse Successful response
|
|
3441
3529
|
* @throws ApiError
|
|
3442
3530
|
*/
|
|
3443
3531
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
@@ -3469,7 +3557,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3469
3557
|
/**
|
|
3470
3558
|
* List historical rewards
|
|
3471
3559
|
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
3472
|
-
* @returns ListHistoricalRewardsResponse
|
|
3560
|
+
* @returns ListHistoricalRewardsResponse Successful response
|
|
3473
3561
|
* @throws ApiError
|
|
3474
3562
|
*/
|
|
3475
3563
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
@@ -4056,7 +4144,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4056
4144
|
/**
|
|
4057
4145
|
* Get transaction
|
|
4058
4146
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
4059
|
-
* @returns any
|
|
4147
|
+
* @returns any Successful response
|
|
4060
4148
|
* @throws ApiError
|
|
4061
4149
|
*/
|
|
4062
4150
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -4080,10 +4168,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4080
4168
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4081
4169
|
*
|
|
4082
4170
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4083
|
-
* @returns any
|
|
4171
|
+
* @returns any Successful response
|
|
4084
4172
|
* @throws ApiError
|
|
4085
4173
|
*/
|
|
4086
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network,
|
|
4174
|
+
listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4175
|
+
/**
|
|
4176
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4177
|
+
*/
|
|
4178
|
+
addresses: string;
|
|
4087
4179
|
/**
|
|
4088
4180
|
* A primary network blockchain id or alias.
|
|
4089
4181
|
*/
|
|
@@ -4092,10 +4184,6 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4092
4184
|
* Either mainnet or a testnet.
|
|
4093
4185
|
*/
|
|
4094
4186
|
network: Network;
|
|
4095
|
-
/**
|
|
4096
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
4097
|
-
*/
|
|
4098
|
-
addresses?: string;
|
|
4099
4187
|
/**
|
|
4100
4188
|
* Query param for filtering items based on transaction types.
|
|
4101
4189
|
*/
|
|
@@ -4124,7 +4212,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4124
4212
|
/**
|
|
4125
4213
|
* List staking transactions
|
|
4126
4214
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
4127
|
-
* @returns ListPChainTransactionsResponse
|
|
4215
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
4128
4216
|
* @throws ApiError
|
|
4129
4217
|
*/
|
|
4130
4218
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4168,7 +4256,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4168
4256
|
/**
|
|
4169
4257
|
* List asset transactions
|
|
4170
4258
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
4171
|
-
* @returns ListXChainTransactionsResponse
|
|
4259
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
4172
4260
|
* @throws ApiError
|
|
4173
4261
|
*/
|
|
4174
4262
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -4231,7 +4319,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4231
4319
|
/**
|
|
4232
4320
|
* List UTXOs
|
|
4233
4321
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
4234
|
-
* @returns any
|
|
4322
|
+
* @returns any Successful response
|
|
4235
4323
|
* @throws ApiError
|
|
4236
4324
|
*/
|
|
4237
4325
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -4296,7 +4384,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4296
4384
|
/**
|
|
4297
4385
|
* List vertices
|
|
4298
4386
|
* Lists latest vertices on the X-Chain.
|
|
4299
|
-
* @returns ListXChainVerticesResponse
|
|
4387
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4300
4388
|
* @throws ApiError
|
|
4301
4389
|
*/
|
|
4302
4390
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -4320,7 +4408,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4320
4408
|
/**
|
|
4321
4409
|
* Get vertex
|
|
4322
4410
|
* Gets a single vertex on the X-Chain.
|
|
4323
|
-
* @returns XChainVertex
|
|
4411
|
+
* @returns XChainVertex Successful response
|
|
4324
4412
|
* @throws ApiError
|
|
4325
4413
|
*/
|
|
4326
4414
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -4340,7 +4428,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4340
4428
|
/**
|
|
4341
4429
|
* List vertices by height
|
|
4342
4430
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
4343
|
-
* @returns ListXChainVerticesResponse
|
|
4431
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4344
4432
|
* @throws ApiError
|
|
4345
4433
|
*/
|
|
4346
4434
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4402,7 +4490,7 @@ declare class RpcService {
|
|
|
4402
4490
|
/**
|
|
4403
4491
|
* Calls JSON-RPC method
|
|
4404
4492
|
* Calls JSON-RPC method.
|
|
4405
|
-
* @returns any
|
|
4493
|
+
* @returns any Successful response
|
|
4406
4494
|
* @throws ApiError
|
|
4407
4495
|
*/
|
|
4408
4496
|
rpc({ chainId, requestBody, }: {
|
|
@@ -4554,7 +4642,7 @@ declare class TeleporterService {
|
|
|
4554
4642
|
/**
|
|
4555
4643
|
* Get a teleporter message
|
|
4556
4644
|
* Gets a teleporter message by message ID.
|
|
4557
|
-
* @returns any
|
|
4645
|
+
* @returns any Successful response
|
|
4558
4646
|
* @throws ApiError
|
|
4559
4647
|
*/
|
|
4560
4648
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -4566,7 +4654,7 @@ declare class TeleporterService {
|
|
|
4566
4654
|
/**
|
|
4567
4655
|
* List teleporter messages
|
|
4568
4656
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4569
|
-
* @returns ListTeleporterMessagesResponse
|
|
4657
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4570
4658
|
* @throws ApiError
|
|
4571
4659
|
*/
|
|
4572
4660
|
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
@@ -4609,7 +4697,7 @@ type AddressesChangeRequest = {
|
|
|
4609
4697
|
/**
|
|
4610
4698
|
* Ethereum address(es) for the address_activity event type
|
|
4611
4699
|
*/
|
|
4612
|
-
addresses: Array<
|
|
4700
|
+
addresses: Array<string>;
|
|
4613
4701
|
};
|
|
4614
4702
|
|
|
4615
4703
|
type AddressActivityMetadata = {
|
|
@@ -4710,7 +4798,7 @@ declare class WebhooksService {
|
|
|
4710
4798
|
/**
|
|
4711
4799
|
* Create a webhook
|
|
4712
4800
|
* Create a new webhook.
|
|
4713
|
-
* @returns WebhookResponse
|
|
4801
|
+
* @returns WebhookResponse Successful response
|
|
4714
4802
|
* @throws ApiError
|
|
4715
4803
|
*/
|
|
4716
4804
|
createWebhook({ requestBody, }: {
|
|
@@ -4719,7 +4807,7 @@ declare class WebhooksService {
|
|
|
4719
4807
|
/**
|
|
4720
4808
|
* List webhooks
|
|
4721
4809
|
* Lists webhooks for the user.
|
|
4722
|
-
* @returns ListWebhooksResponse
|
|
4810
|
+
* @returns ListWebhooksResponse Successful response
|
|
4723
4811
|
* @throws ApiError
|
|
4724
4812
|
*/
|
|
4725
4813
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -4739,7 +4827,7 @@ declare class WebhooksService {
|
|
|
4739
4827
|
/**
|
|
4740
4828
|
* Get a webhook by ID
|
|
4741
4829
|
* Retrieves a webhook by ID.
|
|
4742
|
-
* @returns WebhookResponse
|
|
4830
|
+
* @returns WebhookResponse Successful response
|
|
4743
4831
|
* @throws ApiError
|
|
4744
4832
|
*/
|
|
4745
4833
|
getWebhook({ id, }: {
|
|
@@ -4751,7 +4839,7 @@ declare class WebhooksService {
|
|
|
4751
4839
|
/**
|
|
4752
4840
|
* Deactivate a webhook
|
|
4753
4841
|
* Deactivates a webhook by ID.
|
|
4754
|
-
* @returns WebhookResponse
|
|
4842
|
+
* @returns WebhookResponse Successful response
|
|
4755
4843
|
* @throws ApiError
|
|
4756
4844
|
*/
|
|
4757
4845
|
deactivateWebhook({ id, }: {
|
|
@@ -4763,7 +4851,7 @@ declare class WebhooksService {
|
|
|
4763
4851
|
/**
|
|
4764
4852
|
* Update a webhook
|
|
4765
4853
|
* Updates an existing webhook.
|
|
4766
|
-
* @returns WebhookResponse
|
|
4854
|
+
* @returns WebhookResponse Successful response
|
|
4767
4855
|
* @throws ApiError
|
|
4768
4856
|
*/
|
|
4769
4857
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4776,21 +4864,21 @@ declare class WebhooksService {
|
|
|
4776
4864
|
/**
|
|
4777
4865
|
* Generate a shared secret
|
|
4778
4866
|
* Generates a new shared secret.
|
|
4779
|
-
* @returns SharedSecretsResponse
|
|
4867
|
+
* @returns SharedSecretsResponse Successful response
|
|
4780
4868
|
* @throws ApiError
|
|
4781
4869
|
*/
|
|
4782
4870
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4783
4871
|
/**
|
|
4784
4872
|
* Get a shared secret
|
|
4785
4873
|
* Get a previously generated shared secret.
|
|
4786
|
-
* @returns SharedSecretsResponse
|
|
4874
|
+
* @returns SharedSecretsResponse Successful response
|
|
4787
4875
|
* @throws ApiError
|
|
4788
4876
|
*/
|
|
4789
4877
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4790
4878
|
/**
|
|
4791
4879
|
* Add addresses to webhook
|
|
4792
4880
|
* Add addresses to webhook.
|
|
4793
|
-
* @returns WebhookResponse
|
|
4881
|
+
* @returns WebhookResponse Successful response
|
|
4794
4882
|
* @throws ApiError
|
|
4795
4883
|
*/
|
|
4796
4884
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4803,7 +4891,7 @@ declare class WebhooksService {
|
|
|
4803
4891
|
/**
|
|
4804
4892
|
* Remove addresses from webhook
|
|
4805
4893
|
* Remove addresses from webhook.
|
|
4806
|
-
* @returns WebhookResponse
|
|
4894
|
+
* @returns WebhookResponse Successful response
|
|
4807
4895
|
* @throws ApiError
|
|
4808
4896
|
*/
|
|
4809
4897
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4816,7 +4904,7 @@ declare class WebhooksService {
|
|
|
4816
4904
|
/**
|
|
4817
4905
|
* List adresses by webhook
|
|
4818
4906
|
* List adresses by webhook.
|
|
4819
|
-
* @returns ListWebhookAddressesResponse
|
|
4907
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
4820
4908
|
* @throws ApiError
|
|
4821
4909
|
*/
|
|
4822
4910
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -4878,6 +4966,66 @@ declare class ApiError extends Error {
|
|
|
4878
4966
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4879
4967
|
}
|
|
4880
4968
|
|
|
4969
|
+
type BadGateway = {
|
|
4970
|
+
/**
|
|
4971
|
+
* The error message describing the reason for the exception
|
|
4972
|
+
*/
|
|
4973
|
+
message: (string | Array<string>);
|
|
4974
|
+
/**
|
|
4975
|
+
* The HTTP status code of the response
|
|
4976
|
+
*/
|
|
4977
|
+
statusCode: number;
|
|
4978
|
+
/**
|
|
4979
|
+
* The type of error
|
|
4980
|
+
*/
|
|
4981
|
+
error: string;
|
|
4982
|
+
};
|
|
4983
|
+
|
|
4984
|
+
type BadRequest = {
|
|
4985
|
+
/**
|
|
4986
|
+
* The error message describing the reason for the exception
|
|
4987
|
+
*/
|
|
4988
|
+
message: (string | Array<string>);
|
|
4989
|
+
/**
|
|
4990
|
+
* The HTTP status code of the response
|
|
4991
|
+
*/
|
|
4992
|
+
statusCode: number;
|
|
4993
|
+
/**
|
|
4994
|
+
* The type of error
|
|
4995
|
+
*/
|
|
4996
|
+
error: string;
|
|
4997
|
+
};
|
|
4998
|
+
|
|
4999
|
+
type Forbidden = {
|
|
5000
|
+
/**
|
|
5001
|
+
* The error message describing the reason for the exception
|
|
5002
|
+
*/
|
|
5003
|
+
message: (string | Array<string>);
|
|
5004
|
+
/**
|
|
5005
|
+
* The HTTP status code of the response
|
|
5006
|
+
*/
|
|
5007
|
+
statusCode: number;
|
|
5008
|
+
/**
|
|
5009
|
+
* The type of error
|
|
5010
|
+
*/
|
|
5011
|
+
error: string;
|
|
5012
|
+
};
|
|
5013
|
+
|
|
5014
|
+
type InternalServerError = {
|
|
5015
|
+
/**
|
|
5016
|
+
* The error message describing the reason for the exception
|
|
5017
|
+
*/
|
|
5018
|
+
message: (string | Array<string>);
|
|
5019
|
+
/**
|
|
5020
|
+
* The HTTP status code of the response
|
|
5021
|
+
*/
|
|
5022
|
+
statusCode: number;
|
|
5023
|
+
/**
|
|
5024
|
+
* The type of error
|
|
5025
|
+
*/
|
|
5026
|
+
error: string;
|
|
5027
|
+
};
|
|
5028
|
+
|
|
4881
5029
|
type NextPageToken = {
|
|
4882
5030
|
/**
|
|
4883
5031
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -4885,4 +5033,64 @@ type NextPageToken = {
|
|
|
4885
5033
|
nextPageToken?: string;
|
|
4886
5034
|
};
|
|
4887
5035
|
|
|
4888
|
-
|
|
5036
|
+
type NotFound = {
|
|
5037
|
+
/**
|
|
5038
|
+
* The error message describing the reason for the exception
|
|
5039
|
+
*/
|
|
5040
|
+
message: (string | Array<string>);
|
|
5041
|
+
/**
|
|
5042
|
+
* The HTTP status code of the response
|
|
5043
|
+
*/
|
|
5044
|
+
statusCode: number;
|
|
5045
|
+
/**
|
|
5046
|
+
* The type of error
|
|
5047
|
+
*/
|
|
5048
|
+
error: string;
|
|
5049
|
+
};
|
|
5050
|
+
|
|
5051
|
+
type ServiceUnavailable = {
|
|
5052
|
+
/**
|
|
5053
|
+
* The error message describing the reason for the exception
|
|
5054
|
+
*/
|
|
5055
|
+
message: (string | Array<string>);
|
|
5056
|
+
/**
|
|
5057
|
+
* The HTTP status code of the response
|
|
5058
|
+
*/
|
|
5059
|
+
statusCode: number;
|
|
5060
|
+
/**
|
|
5061
|
+
* The type of error
|
|
5062
|
+
*/
|
|
5063
|
+
error: string;
|
|
5064
|
+
};
|
|
5065
|
+
|
|
5066
|
+
type TooManyRequests = {
|
|
5067
|
+
/**
|
|
5068
|
+
* The error message describing the reason for the exception
|
|
5069
|
+
*/
|
|
5070
|
+
message: (string | Array<string>);
|
|
5071
|
+
/**
|
|
5072
|
+
* The HTTP status code of the response
|
|
5073
|
+
*/
|
|
5074
|
+
statusCode: number;
|
|
5075
|
+
/**
|
|
5076
|
+
* The type of error
|
|
5077
|
+
*/
|
|
5078
|
+
error: string;
|
|
5079
|
+
};
|
|
5080
|
+
|
|
5081
|
+
type Unauthorized = {
|
|
5082
|
+
/**
|
|
5083
|
+
* The error message describing the reason for the exception
|
|
5084
|
+
*/
|
|
5085
|
+
message: (string | Array<string>);
|
|
5086
|
+
/**
|
|
5087
|
+
* The HTTP status code of the response
|
|
5088
|
+
*/
|
|
5089
|
+
statusCode: number;
|
|
5090
|
+
/**
|
|
5091
|
+
* The type of error
|
|
5092
|
+
*/
|
|
5093
|
+
error: string;
|
|
5094
|
+
};
|
|
5095
|
+
|
|
5096
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, GlacierApiUsageMetricsService, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, ServiceUnavailable, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|