@avalabs/glacier-sdk 3.1.0-canary.0be52fe.0 → 3.1.0-canary.1784917.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 +487 -73
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.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 +60 -0
- package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
- package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
- package/esm/generated/models/Metric.d.ts +14 -0
- package/esm/generated/models/NotFound.d.ts +16 -0
- package/esm/generated/models/RequestType.d.ts +9 -0
- package/esm/generated/models/RequestType.js +1 -0
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -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 +9 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
- 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 +109 -0
- package/esm/generated/services/GlacierApiUsageMetricsService.js +1 -0
- 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 +7 -3
- 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 +18 -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, }: {
|
|
@@ -1915,6 +1915,295 @@ declare class EvmTransactionsService {
|
|
|
1915
1915
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1916
1916
|
}
|
|
1917
1917
|
|
|
1918
|
+
type LogsFormatMetadata = {
|
|
1919
|
+
/**
|
|
1920
|
+
* The IP address of the client that made the request.
|
|
1921
|
+
*/
|
|
1922
|
+
ipAddress: string;
|
|
1923
|
+
/**
|
|
1924
|
+
* The host for the request made by the client.
|
|
1925
|
+
*/
|
|
1926
|
+
host: string;
|
|
1927
|
+
/**
|
|
1928
|
+
* The user agent of the client that made the request.
|
|
1929
|
+
*/
|
|
1930
|
+
userAgent: string;
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* The type of request made by the client.
|
|
1935
|
+
*/
|
|
1936
|
+
declare enum RequestType {
|
|
1937
|
+
GLACIER_API_REQUEST = "Glacier API Request",
|
|
1938
|
+
GLACIER_RPC_REQUEST = "Glacier RPC Request"
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
type LogsFormat = {
|
|
1942
|
+
/**
|
|
1943
|
+
* The organization id of the request.
|
|
1944
|
+
*/
|
|
1945
|
+
orgId: string;
|
|
1946
|
+
/**
|
|
1947
|
+
* The unique log id of the request.
|
|
1948
|
+
*/
|
|
1949
|
+
logId: string;
|
|
1950
|
+
/**
|
|
1951
|
+
* The timestamp of the request.
|
|
1952
|
+
*/
|
|
1953
|
+
eventTimestamp: number;
|
|
1954
|
+
/**
|
|
1955
|
+
* The apiKey used to make the request.
|
|
1956
|
+
*/
|
|
1957
|
+
apiKeyId: string;
|
|
1958
|
+
/**
|
|
1959
|
+
* The alias of the apiKey used to make the request.
|
|
1960
|
+
*/
|
|
1961
|
+
apiKeyAlias: string;
|
|
1962
|
+
/**
|
|
1963
|
+
* The region of the host for the request made by the client.
|
|
1964
|
+
*/
|
|
1965
|
+
hostRegion: string;
|
|
1966
|
+
requestType: RequestType;
|
|
1967
|
+
/**
|
|
1968
|
+
* The path of the request made by the client.
|
|
1969
|
+
*/
|
|
1970
|
+
requestPath: string;
|
|
1971
|
+
/**
|
|
1972
|
+
* The number of API credits consumed by the request.
|
|
1973
|
+
*/
|
|
1974
|
+
apiCreditsConsumed: number;
|
|
1975
|
+
/**
|
|
1976
|
+
* The duration of the request in milliseconds.
|
|
1977
|
+
*/
|
|
1978
|
+
requestDurationMsecs: number;
|
|
1979
|
+
/**
|
|
1980
|
+
* The response code of the request.
|
|
1981
|
+
*/
|
|
1982
|
+
responseCode: number;
|
|
1983
|
+
/**
|
|
1984
|
+
* The chain id of the request.
|
|
1985
|
+
*/
|
|
1986
|
+
chainId?: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* The rpc method of the request.
|
|
1989
|
+
*/
|
|
1990
|
+
rpcMethod?: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* The metadata of the request.
|
|
1993
|
+
*/
|
|
1994
|
+
metadata: LogsFormatMetadata;
|
|
1995
|
+
};
|
|
1996
|
+
|
|
1997
|
+
type LogsResponseDTO = {
|
|
1998
|
+
/**
|
|
1999
|
+
* 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.
|
|
2000
|
+
*/
|
|
2001
|
+
nextPageToken?: string;
|
|
2002
|
+
/**
|
|
2003
|
+
* The organization id of the request.
|
|
2004
|
+
*/
|
|
2005
|
+
orgId: string;
|
|
2006
|
+
/**
|
|
2007
|
+
* An array of logs representing the requests made by clients.
|
|
2008
|
+
*/
|
|
2009
|
+
logs: Array<LogsFormat>;
|
|
2010
|
+
};
|
|
2011
|
+
|
|
2012
|
+
declare enum TimeIntervalGranularityExtended {
|
|
2013
|
+
MINUTE = "minute",
|
|
2014
|
+
HOURLY = "hourly",
|
|
2015
|
+
DAILY = "daily",
|
|
2016
|
+
WEEKLY = "weekly",
|
|
2017
|
+
MONTHLY = "monthly"
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
declare enum UsageMetricsGroupByEnum {
|
|
2021
|
+
REQUEST_PATH = "requestPath",
|
|
2022
|
+
RESPONSE_CODE = "responseCode",
|
|
2023
|
+
CHAIN_ID = "chainId",
|
|
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
|
+
}
|
|
2078
|
+
}
|
|
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
|
+
|
|
2091
|
+
type UsageMetricsResponseDTO = {
|
|
2092
|
+
/**
|
|
2093
|
+
* Duration in which the metrics value is aggregated
|
|
2094
|
+
*/
|
|
2095
|
+
aggregateDuration: string;
|
|
2096
|
+
/**
|
|
2097
|
+
* Org ID for which the metrics are aggregated
|
|
2098
|
+
*/
|
|
2099
|
+
orgId: string;
|
|
2100
|
+
/**
|
|
2101
|
+
* Metrics values
|
|
2102
|
+
*/
|
|
2103
|
+
metrics: Array<Metric>;
|
|
2104
|
+
};
|
|
2105
|
+
|
|
2106
|
+
declare class GlacierApiUsageMetricsService {
|
|
2107
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2108
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2109
|
+
/**
|
|
2110
|
+
* Get usage metrics for the Glacier API
|
|
2111
|
+
* Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
2112
|
+
* @returns UsageMetricsResponseDTO Successful response
|
|
2113
|
+
* @throws ApiError
|
|
2114
|
+
*/
|
|
2115
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseStatusCode, chainId, apiKeyId, }: {
|
|
2116
|
+
/**
|
|
2117
|
+
* Organization ID to fetch usage metrics for
|
|
2118
|
+
*/
|
|
2119
|
+
orgId?: string;
|
|
2120
|
+
/**
|
|
2121
|
+
* Query param for retrieving items after a specific timestamp.
|
|
2122
|
+
*/
|
|
2123
|
+
startTimestamp?: number;
|
|
2124
|
+
/**
|
|
2125
|
+
* Query param for retrieving items before a specific timestamp.
|
|
2126
|
+
*/
|
|
2127
|
+
endTimestamp?: number;
|
|
2128
|
+
/**
|
|
2129
|
+
* Time interval granularity for data aggregation
|
|
2130
|
+
*/
|
|
2131
|
+
timeInterval?: TimeIntervalGranularityExtended;
|
|
2132
|
+
/**
|
|
2133
|
+
* Query param for the criterion used for grouping metrics
|
|
2134
|
+
*/
|
|
2135
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
2136
|
+
/**
|
|
2137
|
+
* Filter data by request path.
|
|
2138
|
+
*/
|
|
2139
|
+
requestPath?: string;
|
|
2140
|
+
/**
|
|
2141
|
+
* Filter data by request type.
|
|
2142
|
+
*/
|
|
2143
|
+
requestType?: 'Glacier API Request' | 'Glacier RPC Request';
|
|
2144
|
+
/**
|
|
2145
|
+
* Filter data by response status code.
|
|
2146
|
+
*/
|
|
2147
|
+
responseStatusCode?: string;
|
|
2148
|
+
/**
|
|
2149
|
+
* Filter data by chain ID.
|
|
2150
|
+
*/
|
|
2151
|
+
chainId?: string;
|
|
2152
|
+
/**
|
|
2153
|
+
* Filter data by API key ID.
|
|
2154
|
+
*/
|
|
2155
|
+
apiKeyId?: string;
|
|
2156
|
+
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
2157
|
+
/**
|
|
2158
|
+
* Get logs for requests made by client
|
|
2159
|
+
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
2160
|
+
* @returns LogsResponseDTO Successful response
|
|
2161
|
+
* @throws ApiError
|
|
2162
|
+
*/
|
|
2163
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseStatusCode, chainId, apiKeyId, pageToken, pageSize, }: {
|
|
2164
|
+
/**
|
|
2165
|
+
* Organization ID to fetch usage metrics for
|
|
2166
|
+
*/
|
|
2167
|
+
orgId?: string;
|
|
2168
|
+
/**
|
|
2169
|
+
* Query param for retrieving items after a specific timestamp.
|
|
2170
|
+
*/
|
|
2171
|
+
startTimestamp?: number;
|
|
2172
|
+
/**
|
|
2173
|
+
* Query param for retrieving items before a specific timestamp.
|
|
2174
|
+
*/
|
|
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;
|
|
2196
|
+
/**
|
|
2197
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2198
|
+
*/
|
|
2199
|
+
pageToken?: string;
|
|
2200
|
+
/**
|
|
2201
|
+
* The maximum number of items to return.
|
|
2202
|
+
*/
|
|
2203
|
+
pageSize?: number;
|
|
2204
|
+
}): CancelablePromise<LogsResponseDTO>;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
1918
2207
|
declare class HealthCheckService {
|
|
1919
2208
|
readonly httpRequest: BaseHttpRequest;
|
|
1920
2209
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1923,7 +2212,7 @@ declare class HealthCheckService {
|
|
|
1923
2212
|
* @returns any The Health Check is successful
|
|
1924
2213
|
* @throws ApiError
|
|
1925
2214
|
*/
|
|
1926
|
-
|
|
2215
|
+
glacierHealthCheck(): CancelablePromise<{
|
|
1927
2216
|
status?: string;
|
|
1928
2217
|
info?: Record<string, Record<string, string>> | null;
|
|
1929
2218
|
error?: Record<string, Record<string, string>> | null;
|
|
@@ -1945,7 +2234,7 @@ declare class NfTsService {
|
|
|
1945
2234
|
/**
|
|
1946
2235
|
* Reindex NFT metadata
|
|
1947
2236
|
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
1948
|
-
* @returns any
|
|
2237
|
+
* @returns any Successful response
|
|
1949
2238
|
* @throws ApiError
|
|
1950
2239
|
*/
|
|
1951
2240
|
reindexNft({ chainId, address, tokenId, }: {
|
|
@@ -1965,7 +2254,7 @@ declare class NfTsService {
|
|
|
1965
2254
|
/**
|
|
1966
2255
|
* List tokens
|
|
1967
2256
|
* Lists tokens for an NFT contract.
|
|
1968
|
-
* @returns ListNftTokens
|
|
2257
|
+
* @returns ListNftTokens Successful response
|
|
1969
2258
|
* @throws ApiError
|
|
1970
2259
|
*/
|
|
1971
2260
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
@@ -1989,7 +2278,7 @@ declare class NfTsService {
|
|
|
1989
2278
|
/**
|
|
1990
2279
|
* Get token details
|
|
1991
2280
|
* Gets token details for a specific token of an NFT contract.
|
|
1992
|
-
* @returns any
|
|
2281
|
+
* @returns any Successful response
|
|
1993
2282
|
* @throws ApiError
|
|
1994
2283
|
*/
|
|
1995
2284
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
@@ -2107,7 +2396,7 @@ declare class OperationsService {
|
|
|
2107
2396
|
/**
|
|
2108
2397
|
* Get operation
|
|
2109
2398
|
* Gets operation details for the given operation id.
|
|
2110
|
-
* @returns OperationStatusResponse
|
|
2399
|
+
* @returns OperationStatusResponse Successful response
|
|
2111
2400
|
* @throws ApiError
|
|
2112
2401
|
*/
|
|
2113
2402
|
getOperationResult({ operationId, }: {
|
|
@@ -2121,7 +2410,7 @@ declare class OperationsService {
|
|
|
2121
2410
|
* Trigger a transaction export operation with given parameters.
|
|
2122
2411
|
*
|
|
2123
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.
|
|
2124
|
-
* @returns OperationStatusResponse
|
|
2413
|
+
* @returns OperationStatusResponse Successful response
|
|
2125
2414
|
* @throws ApiError
|
|
2126
2415
|
*/
|
|
2127
2416
|
postTransactionExportJob({ requestBody, }: {
|
|
@@ -2518,7 +2807,7 @@ declare class PrimaryNetworkService {
|
|
|
2518
2807
|
/**
|
|
2519
2808
|
* Get asset details
|
|
2520
2809
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
2521
|
-
* @returns XChainAssetDetails
|
|
2810
|
+
* @returns XChainAssetDetails Successful response
|
|
2522
2811
|
* @throws ApiError
|
|
2523
2812
|
*/
|
|
2524
2813
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -2538,7 +2827,7 @@ declare class PrimaryNetworkService {
|
|
|
2538
2827
|
/**
|
|
2539
2828
|
* Get chain interactions for addresses
|
|
2540
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.
|
|
2541
|
-
* @returns ChainAddressChainIdMapListResponse
|
|
2830
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
2542
2831
|
* @throws ApiError
|
|
2543
2832
|
*/
|
|
2544
2833
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -2554,7 +2843,7 @@ declare class PrimaryNetworkService {
|
|
|
2554
2843
|
/**
|
|
2555
2844
|
* Get network details
|
|
2556
2845
|
* Gets network details such as validator and delegator stats.
|
|
2557
|
-
* @returns GetNetworkDetailsResponse
|
|
2846
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
2558
2847
|
* @throws ApiError
|
|
2559
2848
|
*/
|
|
2560
2849
|
getNetworkDetails({ network, }: {
|
|
@@ -2566,7 +2855,7 @@ declare class PrimaryNetworkService {
|
|
|
2566
2855
|
/**
|
|
2567
2856
|
* List blockchains
|
|
2568
2857
|
* Lists all blockchains registered on the network.
|
|
2569
|
-
* @returns ListBlockchainsResponse
|
|
2858
|
+
* @returns ListBlockchainsResponse Successful response
|
|
2570
2859
|
* @throws ApiError
|
|
2571
2860
|
*/
|
|
2572
2861
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -2590,7 +2879,7 @@ declare class PrimaryNetworkService {
|
|
|
2590
2879
|
/**
|
|
2591
2880
|
* List subnets
|
|
2592
2881
|
* Lists all subnets registered on the network.
|
|
2593
|
-
* @returns ListSubnetsResponse
|
|
2882
|
+
* @returns ListSubnetsResponse Successful response
|
|
2594
2883
|
* @throws ApiError
|
|
2595
2884
|
*/
|
|
2596
2885
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -2614,7 +2903,7 @@ declare class PrimaryNetworkService {
|
|
|
2614
2903
|
/**
|
|
2615
2904
|
* Get Subnet details by ID
|
|
2616
2905
|
* Get details of the Subnet registered on the network.
|
|
2617
|
-
* @returns Subnet
|
|
2906
|
+
* @returns Subnet Successful response
|
|
2618
2907
|
* @throws ApiError
|
|
2619
2908
|
*/
|
|
2620
2909
|
getSubnetById({ network, subnetId, }: {
|
|
@@ -2630,7 +2919,7 @@ declare class PrimaryNetworkService {
|
|
|
2630
2919
|
/**
|
|
2631
2920
|
* List validators
|
|
2632
2921
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
2633
|
-
* @returns ListValidatorDetailsResponse
|
|
2922
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2634
2923
|
* @throws ApiError
|
|
2635
2924
|
*/
|
|
2636
2925
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
@@ -2704,7 +2993,7 @@ declare class PrimaryNetworkService {
|
|
|
2704
2993
|
/**
|
|
2705
2994
|
* Get single validator details
|
|
2706
2995
|
* List validator details for a single validator. Filterable by validation status.
|
|
2707
|
-
* @returns ListValidatorDetailsResponse
|
|
2996
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2708
2997
|
* @throws ApiError
|
|
2709
2998
|
*/
|
|
2710
2999
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
@@ -2736,7 +3025,7 @@ declare class PrimaryNetworkService {
|
|
|
2736
3025
|
/**
|
|
2737
3026
|
* List delegators
|
|
2738
3027
|
* Lists details for delegators.
|
|
2739
|
-
* @returns ListDelegatorDetailsResponse
|
|
3028
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
2740
3029
|
* @throws ApiError
|
|
2741
3030
|
*/
|
|
2742
3031
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
@@ -2978,7 +3267,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
2978
3267
|
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
2979
3268
|
*
|
|
2980
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.
|
|
2981
|
-
* @returns any
|
|
3270
|
+
* @returns any Successful response
|
|
2982
3271
|
* @throws ApiError
|
|
2983
3272
|
*/
|
|
2984
3273
|
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
@@ -3050,7 +3339,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3050
3339
|
/**
|
|
3051
3340
|
* Get block
|
|
3052
3341
|
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
3053
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
3342
|
+
* @returns GetPrimaryNetworkBlockResponse Successful response
|
|
3054
3343
|
* @throws ApiError
|
|
3055
3344
|
*/
|
|
3056
3345
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3070,7 +3359,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3070
3359
|
/**
|
|
3071
3360
|
* List blocks proposed by node
|
|
3072
3361
|
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
3073
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3362
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3074
3363
|
* @throws ApiError
|
|
3075
3364
|
*/
|
|
3076
3365
|
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
@@ -3098,7 +3387,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3098
3387
|
/**
|
|
3099
3388
|
* List latest blocks
|
|
3100
3389
|
* Lists latest blocks on one of the Primary Network chains.
|
|
3101
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3390
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3102
3391
|
* @throws ApiError
|
|
3103
3392
|
*/
|
|
3104
3393
|
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -3236,7 +3525,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3236
3525
|
/**
|
|
3237
3526
|
* List pending rewards
|
|
3238
3527
|
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
3239
|
-
* @returns ListPendingRewardsResponse
|
|
3528
|
+
* @returns ListPendingRewardsResponse Successful response
|
|
3240
3529
|
* @throws ApiError
|
|
3241
3530
|
*/
|
|
3242
3531
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
@@ -3268,7 +3557,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3268
3557
|
/**
|
|
3269
3558
|
* List historical rewards
|
|
3270
3559
|
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
3271
|
-
* @returns ListHistoricalRewardsResponse
|
|
3560
|
+
* @returns ListHistoricalRewardsResponse Successful response
|
|
3272
3561
|
* @throws ApiError
|
|
3273
3562
|
*/
|
|
3274
3563
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
@@ -3855,7 +4144,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3855
4144
|
/**
|
|
3856
4145
|
* Get transaction
|
|
3857
4146
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
3858
|
-
* @returns any
|
|
4147
|
+
* @returns any Successful response
|
|
3859
4148
|
* @throws ApiError
|
|
3860
4149
|
*/
|
|
3861
4150
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -3879,10 +4168,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3879
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.
|
|
3880
4169
|
*
|
|
3881
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.
|
|
3882
|
-
* @returns any
|
|
4171
|
+
* @returns any Successful response
|
|
3883
4172
|
* @throws ApiError
|
|
3884
4173
|
*/
|
|
3885
|
-
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;
|
|
3886
4179
|
/**
|
|
3887
4180
|
* A primary network blockchain id or alias.
|
|
3888
4181
|
*/
|
|
@@ -3891,10 +4184,6 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3891
4184
|
* Either mainnet or a testnet.
|
|
3892
4185
|
*/
|
|
3893
4186
|
network: Network;
|
|
3894
|
-
/**
|
|
3895
|
-
* 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".
|
|
3896
|
-
*/
|
|
3897
|
-
addresses?: string;
|
|
3898
4187
|
/**
|
|
3899
4188
|
* Query param for filtering items based on transaction types.
|
|
3900
4189
|
*/
|
|
@@ -3923,7 +4212,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3923
4212
|
/**
|
|
3924
4213
|
* List staking transactions
|
|
3925
4214
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
3926
|
-
* @returns ListPChainTransactionsResponse
|
|
4215
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
3927
4216
|
* @throws ApiError
|
|
3928
4217
|
*/
|
|
3929
4218
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -3967,7 +4256,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3967
4256
|
/**
|
|
3968
4257
|
* List asset transactions
|
|
3969
4258
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
3970
|
-
* @returns ListXChainTransactionsResponse
|
|
4259
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
3971
4260
|
* @throws ApiError
|
|
3972
4261
|
*/
|
|
3973
4262
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -4030,7 +4319,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4030
4319
|
/**
|
|
4031
4320
|
* List UTXOs
|
|
4032
4321
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
4033
|
-
* @returns any
|
|
4322
|
+
* @returns any Successful response
|
|
4034
4323
|
* @throws ApiError
|
|
4035
4324
|
*/
|
|
4036
4325
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -4095,7 +4384,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4095
4384
|
/**
|
|
4096
4385
|
* List vertices
|
|
4097
4386
|
* Lists latest vertices on the X-Chain.
|
|
4098
|
-
* @returns ListXChainVerticesResponse
|
|
4387
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4099
4388
|
* @throws ApiError
|
|
4100
4389
|
*/
|
|
4101
4390
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -4119,7 +4408,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4119
4408
|
/**
|
|
4120
4409
|
* Get vertex
|
|
4121
4410
|
* Gets a single vertex on the X-Chain.
|
|
4122
|
-
* @returns XChainVertex
|
|
4411
|
+
* @returns XChainVertex Successful response
|
|
4123
4412
|
* @throws ApiError
|
|
4124
4413
|
*/
|
|
4125
4414
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -4139,7 +4428,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4139
4428
|
/**
|
|
4140
4429
|
* List vertices by height
|
|
4141
4430
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
4142
|
-
* @returns ListXChainVerticesResponse
|
|
4431
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4143
4432
|
* @throws ApiError
|
|
4144
4433
|
*/
|
|
4145
4434
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4201,7 +4490,7 @@ declare class RpcService {
|
|
|
4201
4490
|
/**
|
|
4202
4491
|
* Calls JSON-RPC method
|
|
4203
4492
|
* Calls JSON-RPC method.
|
|
4204
|
-
* @returns any
|
|
4493
|
+
* @returns any Successful response
|
|
4205
4494
|
* @throws ApiError
|
|
4206
4495
|
*/
|
|
4207
4496
|
rpc({ chainId, requestBody, }: {
|
|
@@ -4353,7 +4642,7 @@ declare class TeleporterService {
|
|
|
4353
4642
|
/**
|
|
4354
4643
|
* Get a teleporter message
|
|
4355
4644
|
* Gets a teleporter message by message ID.
|
|
4356
|
-
* @returns any
|
|
4645
|
+
* @returns any Successful response
|
|
4357
4646
|
* @throws ApiError
|
|
4358
4647
|
*/
|
|
4359
4648
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -4365,10 +4654,10 @@ declare class TeleporterService {
|
|
|
4365
4654
|
/**
|
|
4366
4655
|
* List teleporter messages
|
|
4367
4656
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4368
|
-
* @returns ListTeleporterMessagesResponse
|
|
4657
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4369
4658
|
* @throws ApiError
|
|
4370
4659
|
*/
|
|
4371
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4660
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
4372
4661
|
/**
|
|
4373
4662
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4374
4663
|
*/
|
|
@@ -4385,6 +4674,10 @@ declare class TeleporterService {
|
|
|
4385
4674
|
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4386
4675
|
*/
|
|
4387
4676
|
destinationBlockchainId?: string;
|
|
4677
|
+
/**
|
|
4678
|
+
* The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
|
|
4679
|
+
*/
|
|
4680
|
+
blockchainId?: string;
|
|
4388
4681
|
/**
|
|
4389
4682
|
* The address of the recipient of the teleporter message.
|
|
4390
4683
|
*/
|
|
@@ -4404,7 +4697,7 @@ type AddressesChangeRequest = {
|
|
|
4404
4697
|
/**
|
|
4405
4698
|
* Ethereum address(es) for the address_activity event type
|
|
4406
4699
|
*/
|
|
4407
|
-
addresses: Array<
|
|
4700
|
+
addresses: Array<string>;
|
|
4408
4701
|
};
|
|
4409
4702
|
|
|
4410
4703
|
type AddressActivityMetadata = {
|
|
@@ -4505,7 +4798,7 @@ declare class WebhooksService {
|
|
|
4505
4798
|
/**
|
|
4506
4799
|
* Create a webhook
|
|
4507
4800
|
* Create a new webhook.
|
|
4508
|
-
* @returns WebhookResponse
|
|
4801
|
+
* @returns WebhookResponse Successful response
|
|
4509
4802
|
* @throws ApiError
|
|
4510
4803
|
*/
|
|
4511
4804
|
createWebhook({ requestBody, }: {
|
|
@@ -4514,7 +4807,7 @@ declare class WebhooksService {
|
|
|
4514
4807
|
/**
|
|
4515
4808
|
* List webhooks
|
|
4516
4809
|
* Lists webhooks for the user.
|
|
4517
|
-
* @returns ListWebhooksResponse
|
|
4810
|
+
* @returns ListWebhooksResponse Successful response
|
|
4518
4811
|
* @throws ApiError
|
|
4519
4812
|
*/
|
|
4520
4813
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -4534,7 +4827,7 @@ declare class WebhooksService {
|
|
|
4534
4827
|
/**
|
|
4535
4828
|
* Get a webhook by ID
|
|
4536
4829
|
* Retrieves a webhook by ID.
|
|
4537
|
-
* @returns WebhookResponse
|
|
4830
|
+
* @returns WebhookResponse Successful response
|
|
4538
4831
|
* @throws ApiError
|
|
4539
4832
|
*/
|
|
4540
4833
|
getWebhook({ id, }: {
|
|
@@ -4546,7 +4839,7 @@ declare class WebhooksService {
|
|
|
4546
4839
|
/**
|
|
4547
4840
|
* Deactivate a webhook
|
|
4548
4841
|
* Deactivates a webhook by ID.
|
|
4549
|
-
* @returns WebhookResponse
|
|
4842
|
+
* @returns WebhookResponse Successful response
|
|
4550
4843
|
* @throws ApiError
|
|
4551
4844
|
*/
|
|
4552
4845
|
deactivateWebhook({ id, }: {
|
|
@@ -4558,7 +4851,7 @@ declare class WebhooksService {
|
|
|
4558
4851
|
/**
|
|
4559
4852
|
* Update a webhook
|
|
4560
4853
|
* Updates an existing webhook.
|
|
4561
|
-
* @returns WebhookResponse
|
|
4854
|
+
* @returns WebhookResponse Successful response
|
|
4562
4855
|
* @throws ApiError
|
|
4563
4856
|
*/
|
|
4564
4857
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4571,21 +4864,21 @@ declare class WebhooksService {
|
|
|
4571
4864
|
/**
|
|
4572
4865
|
* Generate a shared secret
|
|
4573
4866
|
* Generates a new shared secret.
|
|
4574
|
-
* @returns SharedSecretsResponse
|
|
4867
|
+
* @returns SharedSecretsResponse Successful response
|
|
4575
4868
|
* @throws ApiError
|
|
4576
4869
|
*/
|
|
4577
4870
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4578
4871
|
/**
|
|
4579
4872
|
* Get a shared secret
|
|
4580
4873
|
* Get a previously generated shared secret.
|
|
4581
|
-
* @returns SharedSecretsResponse
|
|
4874
|
+
* @returns SharedSecretsResponse Successful response
|
|
4582
4875
|
* @throws ApiError
|
|
4583
4876
|
*/
|
|
4584
4877
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4585
4878
|
/**
|
|
4586
4879
|
* Add addresses to webhook
|
|
4587
4880
|
* Add addresses to webhook.
|
|
4588
|
-
* @returns WebhookResponse
|
|
4881
|
+
* @returns WebhookResponse Successful response
|
|
4589
4882
|
* @throws ApiError
|
|
4590
4883
|
*/
|
|
4591
4884
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4598,7 +4891,7 @@ declare class WebhooksService {
|
|
|
4598
4891
|
/**
|
|
4599
4892
|
* Remove addresses from webhook
|
|
4600
4893
|
* Remove addresses from webhook.
|
|
4601
|
-
* @returns WebhookResponse
|
|
4894
|
+
* @returns WebhookResponse Successful response
|
|
4602
4895
|
* @throws ApiError
|
|
4603
4896
|
*/
|
|
4604
4897
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4611,7 +4904,7 @@ declare class WebhooksService {
|
|
|
4611
4904
|
/**
|
|
4612
4905
|
* List adresses by webhook
|
|
4613
4906
|
* List adresses by webhook.
|
|
4614
|
-
* @returns ListWebhookAddressesResponse
|
|
4907
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
4615
4908
|
* @throws ApiError
|
|
4616
4909
|
*/
|
|
4617
4910
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -4638,6 +4931,7 @@ declare class Glacier {
|
|
|
4638
4931
|
readonly evmChains: EvmChainsService;
|
|
4639
4932
|
readonly evmContracts: EvmContractsService;
|
|
4640
4933
|
readonly evmTransactions: EvmTransactionsService;
|
|
4934
|
+
readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
|
|
4641
4935
|
readonly healthCheck: HealthCheckService;
|
|
4642
4936
|
readonly nfTs: NfTsService;
|
|
4643
4937
|
readonly operations: OperationsService;
|
|
@@ -4672,6 +4966,66 @@ declare class ApiError extends Error {
|
|
|
4672
4966
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4673
4967
|
}
|
|
4674
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
|
+
|
|
4675
5029
|
type NextPageToken = {
|
|
4676
5030
|
/**
|
|
4677
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.
|
|
@@ -4679,4 +5033,64 @@ type NextPageToken = {
|
|
|
4679
5033
|
nextPageToken?: string;
|
|
4680
5034
|
};
|
|
4681
5035
|
|
|
4682
|
-
|
|
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 };
|