@avalabs/glacier-sdk 3.1.0-canary.5b3df0e.0 → 3.1.0-canary.639f9ba.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 +344 -86
- 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/DataListChainsResponse.d.ts +7 -0
- package/esm/generated/models/Forbidden.d.ts +16 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +5 -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/RequestType.d.ts +2 -2
- package/esm/generated/models/RequestType.js +1 -1
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
- package/esm/generated/models/TooManyRequests.d.ts +16 -0
- package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
- package/esm/generated/models/TransactionDirectionType.js +1 -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 +33 -9
- 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 +26 -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 +13 -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, }: {
|
|
@@ -1309,6 +1309,24 @@ type NetworkTokenDetails = {
|
|
|
1309
1309
|
historicalPrice?: Money;
|
|
1310
1310
|
};
|
|
1311
1311
|
|
|
1312
|
+
declare enum TransactionDirectionType {
|
|
1313
|
+
SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
|
|
1314
|
+
DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
type TeleporterMessageInfo = {
|
|
1318
|
+
teleporterMessageId: string;
|
|
1319
|
+
direction: TransactionDirectionType;
|
|
1320
|
+
/**
|
|
1321
|
+
* chain id of the source chain. valid only for destination transactions
|
|
1322
|
+
*/
|
|
1323
|
+
sourceChainId?: Record<string, any>;
|
|
1324
|
+
/**
|
|
1325
|
+
* chain id of the destination chain. valid only for source transactions
|
|
1326
|
+
*/
|
|
1327
|
+
destinationChainId?: Record<string, any>;
|
|
1328
|
+
};
|
|
1329
|
+
|
|
1312
1330
|
type GetTransactionResponse = {
|
|
1313
1331
|
/**
|
|
1314
1332
|
* The list of ERC-20 transfers.
|
|
@@ -1328,6 +1346,10 @@ type GetTransactionResponse = {
|
|
|
1328
1346
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1329
1347
|
networkTokenDetails: NetworkTokenDetails;
|
|
1330
1348
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1349
|
+
/**
|
|
1350
|
+
* Corresponding teleporter message info if available.
|
|
1351
|
+
*/
|
|
1352
|
+
teleporterMessageInfo?: TeleporterMessageInfo;
|
|
1331
1353
|
};
|
|
1332
1354
|
|
|
1333
1355
|
type ListContractsResponse = {
|
|
@@ -1584,7 +1606,7 @@ declare class EvmTransactionsService {
|
|
|
1584
1606
|
/**
|
|
1585
1607
|
* Get deployment transaction
|
|
1586
1608
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
1587
|
-
* @returns GetTransactionResponse
|
|
1609
|
+
* @returns GetTransactionResponse Successful response
|
|
1588
1610
|
* @throws ApiError
|
|
1589
1611
|
*/
|
|
1590
1612
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
@@ -1604,7 +1626,7 @@ declare class EvmTransactionsService {
|
|
|
1604
1626
|
/**
|
|
1605
1627
|
* List deployed contracts
|
|
1606
1628
|
* Lists all contracts deployed by the given address.
|
|
1607
|
-
* @returns ListContractsResponse
|
|
1629
|
+
* @returns ListContractsResponse Successful response
|
|
1608
1630
|
* @throws ApiError
|
|
1609
1631
|
*/
|
|
1610
1632
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
@@ -1628,7 +1650,7 @@ declare class EvmTransactionsService {
|
|
|
1628
1650
|
/**
|
|
1629
1651
|
* List ERC transfers
|
|
1630
1652
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
1631
|
-
* @returns ListTransfersResponse
|
|
1653
|
+
* @returns ListTransfersResponse Successful response
|
|
1632
1654
|
* @throws ApiError
|
|
1633
1655
|
*/
|
|
1634
1656
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1662,7 +1684,7 @@ declare class EvmTransactionsService {
|
|
|
1662
1684
|
* 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
1685
|
*
|
|
1664
1686
|
* Filterable by block ranges.
|
|
1665
|
-
* @returns ListTransactionDetailsResponse
|
|
1687
|
+
* @returns ListTransactionDetailsResponse Successful response
|
|
1666
1688
|
* @throws ApiError
|
|
1667
1689
|
*/
|
|
1668
1690
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
@@ -1698,7 +1720,7 @@ declare class EvmTransactionsService {
|
|
|
1698
1720
|
/**
|
|
1699
1721
|
* List native transactions
|
|
1700
1722
|
* Lists native transactions for an address. Filterable by block range.
|
|
1701
|
-
* @returns ListNativeTransactionsResponse
|
|
1723
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1702
1724
|
* @throws ApiError
|
|
1703
1725
|
*/
|
|
1704
1726
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1730,7 +1752,7 @@ declare class EvmTransactionsService {
|
|
|
1730
1752
|
/**
|
|
1731
1753
|
* List ERC-20 transfers
|
|
1732
1754
|
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
1733
|
-
* @returns ListErc20TransactionsResponse
|
|
1755
|
+
* @returns ListErc20TransactionsResponse Successful response
|
|
1734
1756
|
* @throws ApiError
|
|
1735
1757
|
*/
|
|
1736
1758
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1762,7 +1784,7 @@ declare class EvmTransactionsService {
|
|
|
1762
1784
|
/**
|
|
1763
1785
|
* List ERC-721 transfers
|
|
1764
1786
|
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
1765
|
-
* @returns ListErc721TransactionsResponse
|
|
1787
|
+
* @returns ListErc721TransactionsResponse Successful response
|
|
1766
1788
|
* @throws ApiError
|
|
1767
1789
|
*/
|
|
1768
1790
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1794,7 +1816,7 @@ declare class EvmTransactionsService {
|
|
|
1794
1816
|
/**
|
|
1795
1817
|
* List ERC-1155 transfers
|
|
1796
1818
|
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
1797
|
-
* @returns ListErc1155TransactionsResponse
|
|
1819
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
1798
1820
|
* @throws ApiError
|
|
1799
1821
|
*/
|
|
1800
1822
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1828,7 +1850,7 @@ declare class EvmTransactionsService {
|
|
|
1828
1850
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
1829
1851
|
*
|
|
1830
1852
|
* 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
|
|
1853
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
1832
1854
|
* @throws ApiError
|
|
1833
1855
|
*/
|
|
1834
1856
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1860,7 +1882,7 @@ declare class EvmTransactionsService {
|
|
|
1860
1882
|
/**
|
|
1861
1883
|
* Get transaction
|
|
1862
1884
|
* Gets the details of a single transaction.
|
|
1863
|
-
* @returns GetTransactionResponse
|
|
1885
|
+
* @returns GetTransactionResponse Successful response
|
|
1864
1886
|
* @throws ApiError
|
|
1865
1887
|
*/
|
|
1866
1888
|
getTransaction({ chainId, txHash, }: {
|
|
@@ -1876,7 +1898,7 @@ declare class EvmTransactionsService {
|
|
|
1876
1898
|
/**
|
|
1877
1899
|
* List transactions for a block
|
|
1878
1900
|
* Lists the transactions that occured in a given block.
|
|
1879
|
-
* @returns ListNativeTransactionsResponse
|
|
1901
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1880
1902
|
* @throws ApiError
|
|
1881
1903
|
*/
|
|
1882
1904
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
@@ -1892,7 +1914,7 @@ declare class EvmTransactionsService {
|
|
|
1892
1914
|
/**
|
|
1893
1915
|
* List latest transactions
|
|
1894
1916
|
* Lists the latest transactions. Filterable by status.
|
|
1895
|
-
* @returns ListNativeTransactionsResponse
|
|
1917
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1896
1918
|
* @throws ApiError
|
|
1897
1919
|
*/
|
|
1898
1920
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
@@ -1934,8 +1956,8 @@ type LogsFormatMetadata = {
|
|
|
1934
1956
|
* The type of request made by the client.
|
|
1935
1957
|
*/
|
|
1936
1958
|
declare enum RequestType {
|
|
1937
|
-
|
|
1938
|
-
|
|
1959
|
+
DATA = "data",
|
|
1960
|
+
RPC = "rpc"
|
|
1939
1961
|
}
|
|
1940
1962
|
|
|
1941
1963
|
type LogsFormat = {
|
|
@@ -1983,7 +2005,7 @@ type LogsFormat = {
|
|
|
1983
2005
|
/**
|
|
1984
2006
|
* The chain id of the request.
|
|
1985
2007
|
*/
|
|
1986
|
-
chainId?:
|
|
2008
|
+
chainId?: string;
|
|
1987
2009
|
/**
|
|
1988
2010
|
* The rpc method of the request.
|
|
1989
2011
|
*/
|
|
@@ -2021,9 +2043,73 @@ declare enum UsageMetricsGroupByEnum {
|
|
|
2021
2043
|
REQUEST_PATH = "requestPath",
|
|
2022
2044
|
RESPONSE_CODE = "responseCode",
|
|
2023
2045
|
CHAIN_ID = "chainId",
|
|
2024
|
-
API_KEY_ID = "apiKeyId"
|
|
2046
|
+
API_KEY_ID = "apiKeyId",
|
|
2047
|
+
REQUEST_TYPE = "requestType"
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
type UsageMetricsValueDTO = {
|
|
2051
|
+
/**
|
|
2052
|
+
* Column name used for data aggregation
|
|
2053
|
+
*/
|
|
2054
|
+
groupedBy: UsageMetricsValueDTO.groupedBy;
|
|
2055
|
+
/**
|
|
2056
|
+
* The value of the column used for data aggregation
|
|
2057
|
+
*/
|
|
2058
|
+
groupValue?: (string | number);
|
|
2059
|
+
/**
|
|
2060
|
+
* The total number of requests
|
|
2061
|
+
*/
|
|
2062
|
+
totalRequests: number;
|
|
2063
|
+
/**
|
|
2064
|
+
* The number of requests per second
|
|
2065
|
+
*/
|
|
2066
|
+
requestsPerSecond: number;
|
|
2067
|
+
/**
|
|
2068
|
+
* The success rate percentage
|
|
2069
|
+
*/
|
|
2070
|
+
successRatePercent: number;
|
|
2071
|
+
/**
|
|
2072
|
+
* The median response time in milliseconds
|
|
2073
|
+
*/
|
|
2074
|
+
medianResponseTimeMsecs: number;
|
|
2075
|
+
/**
|
|
2076
|
+
* The number of invalid requests
|
|
2077
|
+
*/
|
|
2078
|
+
invalidRequests: number;
|
|
2079
|
+
/**
|
|
2080
|
+
* The number of API credits used
|
|
2081
|
+
*/
|
|
2082
|
+
apiCreditsUsed: number;
|
|
2083
|
+
/**
|
|
2084
|
+
* The number of API credits wasted on invalid requests
|
|
2085
|
+
*/
|
|
2086
|
+
apiCreditsWasted: number;
|
|
2087
|
+
};
|
|
2088
|
+
declare namespace UsageMetricsValueDTO {
|
|
2089
|
+
/**
|
|
2090
|
+
* Column name used for data aggregation
|
|
2091
|
+
*/
|
|
2092
|
+
enum groupedBy {
|
|
2093
|
+
REQUEST_PATH = "requestPath",
|
|
2094
|
+
RESPONSE_CODE = "responseCode",
|
|
2095
|
+
CHAIN_ID = "chainId",
|
|
2096
|
+
API_KEY_ID = "apiKeyId",
|
|
2097
|
+
REQUEST_TYPE = "requestType",
|
|
2098
|
+
NONE = "None"
|
|
2099
|
+
}
|
|
2025
2100
|
}
|
|
2026
2101
|
|
|
2102
|
+
type Metric = {
|
|
2103
|
+
/**
|
|
2104
|
+
* The timestamp of the metrics value
|
|
2105
|
+
*/
|
|
2106
|
+
timestamp: number;
|
|
2107
|
+
/**
|
|
2108
|
+
* The metrics values for the timestamp
|
|
2109
|
+
*/
|
|
2110
|
+
values: Array<UsageMetricsValueDTO>;
|
|
2111
|
+
};
|
|
2112
|
+
|
|
2027
2113
|
type UsageMetricsResponseDTO = {
|
|
2028
2114
|
/**
|
|
2029
2115
|
* Duration in which the metrics value is aggregated
|
|
@@ -2036,7 +2122,7 @@ type UsageMetricsResponseDTO = {
|
|
|
2036
2122
|
/**
|
|
2037
2123
|
* Metrics values
|
|
2038
2124
|
*/
|
|
2039
|
-
metrics: Array<
|
|
2125
|
+
metrics: Array<Metric>;
|
|
2040
2126
|
};
|
|
2041
2127
|
|
|
2042
2128
|
declare class GlacierApiUsageMetricsService {
|
|
@@ -2045,10 +2131,10 @@ declare class GlacierApiUsageMetricsService {
|
|
|
2045
2131
|
/**
|
|
2046
2132
|
* Get usage metrics for the Glacier API
|
|
2047
2133
|
* Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
2048
|
-
* @returns UsageMetricsResponseDTO
|
|
2134
|
+
* @returns UsageMetricsResponseDTO Successful response
|
|
2049
2135
|
* @throws ApiError
|
|
2050
2136
|
*/
|
|
2051
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath,
|
|
2137
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
|
|
2052
2138
|
/**
|
|
2053
2139
|
* Organization ID to fetch usage metrics for
|
|
2054
2140
|
*/
|
|
@@ -2070,29 +2156,33 @@ declare class GlacierApiUsageMetricsService {
|
|
|
2070
2156
|
*/
|
|
2071
2157
|
groupBy?: UsageMetricsGroupByEnum;
|
|
2072
2158
|
/**
|
|
2073
|
-
* Filter
|
|
2159
|
+
* Filter data by request path.
|
|
2074
2160
|
*/
|
|
2075
2161
|
requestPath?: string;
|
|
2076
2162
|
/**
|
|
2077
|
-
* Filter
|
|
2163
|
+
* Filter data by request type.
|
|
2078
2164
|
*/
|
|
2079
|
-
|
|
2165
|
+
requestType?: 'data' | 'rpc';
|
|
2080
2166
|
/**
|
|
2081
|
-
* Filter
|
|
2167
|
+
* Filter data by response status code.
|
|
2168
|
+
*/
|
|
2169
|
+
responseCode?: string;
|
|
2170
|
+
/**
|
|
2171
|
+
* Filter data by chain ID.
|
|
2082
2172
|
*/
|
|
2083
2173
|
chainId?: string;
|
|
2084
2174
|
/**
|
|
2085
|
-
* Filter
|
|
2175
|
+
* Filter data by API key ID.
|
|
2086
2176
|
*/
|
|
2087
2177
|
apiKeyId?: string;
|
|
2088
2178
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
2089
2179
|
/**
|
|
2090
2180
|
* Get logs for requests made by client
|
|
2091
2181
|
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
2092
|
-
* @returns LogsResponseDTO
|
|
2182
|
+
* @returns LogsResponseDTO Successful response
|
|
2093
2183
|
* @throws ApiError
|
|
2094
2184
|
*/
|
|
2095
|
-
|
|
2185
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
|
|
2096
2186
|
/**
|
|
2097
2187
|
* Organization ID to fetch usage metrics for
|
|
2098
2188
|
*/
|
|
@@ -2105,6 +2195,26 @@ declare class GlacierApiUsageMetricsService {
|
|
|
2105
2195
|
* Query param for retrieving items before a specific timestamp.
|
|
2106
2196
|
*/
|
|
2107
2197
|
endTimestamp?: number;
|
|
2198
|
+
/**
|
|
2199
|
+
* Filter data by request path.
|
|
2200
|
+
*/
|
|
2201
|
+
requestPath?: string;
|
|
2202
|
+
/**
|
|
2203
|
+
* Filter data by request type.
|
|
2204
|
+
*/
|
|
2205
|
+
requestType?: 'data' | 'rpc';
|
|
2206
|
+
/**
|
|
2207
|
+
* Filter data by response status code.
|
|
2208
|
+
*/
|
|
2209
|
+
responseCode?: string;
|
|
2210
|
+
/**
|
|
2211
|
+
* Filter data by chain ID.
|
|
2212
|
+
*/
|
|
2213
|
+
chainId?: string;
|
|
2214
|
+
/**
|
|
2215
|
+
* Filter data by API key ID.
|
|
2216
|
+
*/
|
|
2217
|
+
apiKeyId?: string;
|
|
2108
2218
|
/**
|
|
2109
2219
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2110
2220
|
*/
|
|
@@ -2124,7 +2234,7 @@ declare class HealthCheckService {
|
|
|
2124
2234
|
* @returns any The Health Check is successful
|
|
2125
2235
|
* @throws ApiError
|
|
2126
2236
|
*/
|
|
2127
|
-
|
|
2237
|
+
dataHealthCheck(): CancelablePromise<{
|
|
2128
2238
|
status?: string;
|
|
2129
2239
|
info?: Record<string, Record<string, string>> | null;
|
|
2130
2240
|
error?: Record<string, Record<string, string>> | null;
|
|
@@ -2146,7 +2256,7 @@ declare class NfTsService {
|
|
|
2146
2256
|
/**
|
|
2147
2257
|
* Reindex NFT metadata
|
|
2148
2258
|
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2149
|
-
* @returns any
|
|
2259
|
+
* @returns any Successful response
|
|
2150
2260
|
* @throws ApiError
|
|
2151
2261
|
*/
|
|
2152
2262
|
reindexNft({ chainId, address, tokenId, }: {
|
|
@@ -2166,7 +2276,7 @@ declare class NfTsService {
|
|
|
2166
2276
|
/**
|
|
2167
2277
|
* List tokens
|
|
2168
2278
|
* Lists tokens for an NFT contract.
|
|
2169
|
-
* @returns ListNftTokens
|
|
2279
|
+
* @returns ListNftTokens Successful response
|
|
2170
2280
|
* @throws ApiError
|
|
2171
2281
|
*/
|
|
2172
2282
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
@@ -2190,7 +2300,7 @@ declare class NfTsService {
|
|
|
2190
2300
|
/**
|
|
2191
2301
|
* Get token details
|
|
2192
2302
|
* Gets token details for a specific token of an NFT contract.
|
|
2193
|
-
* @returns any
|
|
2303
|
+
* @returns any Successful response
|
|
2194
2304
|
* @throws ApiError
|
|
2195
2305
|
*/
|
|
2196
2306
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
@@ -2308,7 +2418,7 @@ declare class OperationsService {
|
|
|
2308
2418
|
/**
|
|
2309
2419
|
* Get operation
|
|
2310
2420
|
* Gets operation details for the given operation id.
|
|
2311
|
-
* @returns OperationStatusResponse
|
|
2421
|
+
* @returns OperationStatusResponse Successful response
|
|
2312
2422
|
* @throws ApiError
|
|
2313
2423
|
*/
|
|
2314
2424
|
getOperationResult({ operationId, }: {
|
|
@@ -2322,7 +2432,7 @@ declare class OperationsService {
|
|
|
2322
2432
|
* Trigger a transaction export operation with given parameters.
|
|
2323
2433
|
*
|
|
2324
2434
|
* 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
|
|
2435
|
+
* @returns OperationStatusResponse Successful response
|
|
2326
2436
|
* @throws ApiError
|
|
2327
2437
|
*/
|
|
2328
2438
|
postTransactionExportJob({ requestBody, }: {
|
|
@@ -2719,7 +2829,7 @@ declare class PrimaryNetworkService {
|
|
|
2719
2829
|
/**
|
|
2720
2830
|
* Get asset details
|
|
2721
2831
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
2722
|
-
* @returns XChainAssetDetails
|
|
2832
|
+
* @returns XChainAssetDetails Successful response
|
|
2723
2833
|
* @throws ApiError
|
|
2724
2834
|
*/
|
|
2725
2835
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -2739,7 +2849,7 @@ declare class PrimaryNetworkService {
|
|
|
2739
2849
|
/**
|
|
2740
2850
|
* Get chain interactions for addresses
|
|
2741
2851
|
* 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
|
|
2852
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
2743
2853
|
* @throws ApiError
|
|
2744
2854
|
*/
|
|
2745
2855
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -2755,7 +2865,7 @@ declare class PrimaryNetworkService {
|
|
|
2755
2865
|
/**
|
|
2756
2866
|
* Get network details
|
|
2757
2867
|
* Gets network details such as validator and delegator stats.
|
|
2758
|
-
* @returns GetNetworkDetailsResponse
|
|
2868
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
2759
2869
|
* @throws ApiError
|
|
2760
2870
|
*/
|
|
2761
2871
|
getNetworkDetails({ network, }: {
|
|
@@ -2767,7 +2877,7 @@ declare class PrimaryNetworkService {
|
|
|
2767
2877
|
/**
|
|
2768
2878
|
* List blockchains
|
|
2769
2879
|
* Lists all blockchains registered on the network.
|
|
2770
|
-
* @returns ListBlockchainsResponse
|
|
2880
|
+
* @returns ListBlockchainsResponse Successful response
|
|
2771
2881
|
* @throws ApiError
|
|
2772
2882
|
*/
|
|
2773
2883
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -2791,7 +2901,7 @@ declare class PrimaryNetworkService {
|
|
|
2791
2901
|
/**
|
|
2792
2902
|
* List subnets
|
|
2793
2903
|
* Lists all subnets registered on the network.
|
|
2794
|
-
* @returns ListSubnetsResponse
|
|
2904
|
+
* @returns ListSubnetsResponse Successful response
|
|
2795
2905
|
* @throws ApiError
|
|
2796
2906
|
*/
|
|
2797
2907
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -2815,7 +2925,7 @@ declare class PrimaryNetworkService {
|
|
|
2815
2925
|
/**
|
|
2816
2926
|
* Get Subnet details by ID
|
|
2817
2927
|
* Get details of the Subnet registered on the network.
|
|
2818
|
-
* @returns Subnet
|
|
2928
|
+
* @returns Subnet Successful response
|
|
2819
2929
|
* @throws ApiError
|
|
2820
2930
|
*/
|
|
2821
2931
|
getSubnetById({ network, subnetId, }: {
|
|
@@ -2831,7 +2941,7 @@ declare class PrimaryNetworkService {
|
|
|
2831
2941
|
/**
|
|
2832
2942
|
* List validators
|
|
2833
2943
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
2834
|
-
* @returns ListValidatorDetailsResponse
|
|
2944
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2835
2945
|
* @throws ApiError
|
|
2836
2946
|
*/
|
|
2837
2947
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
@@ -2905,7 +3015,7 @@ declare class PrimaryNetworkService {
|
|
|
2905
3015
|
/**
|
|
2906
3016
|
* Get single validator details
|
|
2907
3017
|
* List validator details for a single validator. Filterable by validation status.
|
|
2908
|
-
* @returns ListValidatorDetailsResponse
|
|
3018
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2909
3019
|
* @throws ApiError
|
|
2910
3020
|
*/
|
|
2911
3021
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
@@ -2937,7 +3047,7 @@ declare class PrimaryNetworkService {
|
|
|
2937
3047
|
/**
|
|
2938
3048
|
* List delegators
|
|
2939
3049
|
* Lists details for delegators.
|
|
2940
|
-
* @returns ListDelegatorDetailsResponse
|
|
3050
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
2941
3051
|
* @throws ApiError
|
|
2942
3052
|
*/
|
|
2943
3053
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
@@ -3179,7 +3289,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3179
3289
|
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
3180
3290
|
*
|
|
3181
3291
|
* 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
|
|
3292
|
+
* @returns any Successful response
|
|
3183
3293
|
* @throws ApiError
|
|
3184
3294
|
*/
|
|
3185
3295
|
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
@@ -3251,7 +3361,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3251
3361
|
/**
|
|
3252
3362
|
* Get block
|
|
3253
3363
|
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
3254
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
3364
|
+
* @returns GetPrimaryNetworkBlockResponse Successful response
|
|
3255
3365
|
* @throws ApiError
|
|
3256
3366
|
*/
|
|
3257
3367
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3271,7 +3381,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3271
3381
|
/**
|
|
3272
3382
|
* List blocks proposed by node
|
|
3273
3383
|
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
3274
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3384
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3275
3385
|
* @throws ApiError
|
|
3276
3386
|
*/
|
|
3277
3387
|
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
@@ -3299,7 +3409,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3299
3409
|
/**
|
|
3300
3410
|
* List latest blocks
|
|
3301
3411
|
* Lists latest blocks on one of the Primary Network chains.
|
|
3302
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3412
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3303
3413
|
* @throws ApiError
|
|
3304
3414
|
*/
|
|
3305
3415
|
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -3437,7 +3547,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3437
3547
|
/**
|
|
3438
3548
|
* List pending rewards
|
|
3439
3549
|
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
3440
|
-
* @returns ListPendingRewardsResponse
|
|
3550
|
+
* @returns ListPendingRewardsResponse Successful response
|
|
3441
3551
|
* @throws ApiError
|
|
3442
3552
|
*/
|
|
3443
3553
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
@@ -3469,7 +3579,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3469
3579
|
/**
|
|
3470
3580
|
* List historical rewards
|
|
3471
3581
|
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
3472
|
-
* @returns ListHistoricalRewardsResponse
|
|
3582
|
+
* @returns ListHistoricalRewardsResponse Successful response
|
|
3473
3583
|
* @throws ApiError
|
|
3474
3584
|
*/
|
|
3475
3585
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
@@ -4056,7 +4166,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4056
4166
|
/**
|
|
4057
4167
|
* Get transaction
|
|
4058
4168
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
4059
|
-
* @returns any
|
|
4169
|
+
* @returns any Successful response
|
|
4060
4170
|
* @throws ApiError
|
|
4061
4171
|
*/
|
|
4062
4172
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -4080,10 +4190,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4080
4190
|
* 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
4191
|
*
|
|
4082
4192
|
* 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
|
|
4193
|
+
* @returns any Successful response
|
|
4084
4194
|
* @throws ApiError
|
|
4085
4195
|
*/
|
|
4086
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network,
|
|
4196
|
+
listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4197
|
+
/**
|
|
4198
|
+
* 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.
|
|
4199
|
+
*/
|
|
4200
|
+
addresses: string;
|
|
4087
4201
|
/**
|
|
4088
4202
|
* A primary network blockchain id or alias.
|
|
4089
4203
|
*/
|
|
@@ -4092,10 +4206,6 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4092
4206
|
* Either mainnet or a testnet.
|
|
4093
4207
|
*/
|
|
4094
4208
|
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
4209
|
/**
|
|
4100
4210
|
* Query param for filtering items based on transaction types.
|
|
4101
4211
|
*/
|
|
@@ -4124,7 +4234,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4124
4234
|
/**
|
|
4125
4235
|
* List staking transactions
|
|
4126
4236
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
4127
|
-
* @returns ListPChainTransactionsResponse
|
|
4237
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
4128
4238
|
* @throws ApiError
|
|
4129
4239
|
*/
|
|
4130
4240
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4168,7 +4278,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4168
4278
|
/**
|
|
4169
4279
|
* List asset transactions
|
|
4170
4280
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
4171
|
-
* @returns ListXChainTransactionsResponse
|
|
4281
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
4172
4282
|
* @throws ApiError
|
|
4173
4283
|
*/
|
|
4174
4284
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -4231,7 +4341,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4231
4341
|
/**
|
|
4232
4342
|
* List UTXOs
|
|
4233
4343
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
4234
|
-
* @returns any
|
|
4344
|
+
* @returns any Successful response
|
|
4235
4345
|
* @throws ApiError
|
|
4236
4346
|
*/
|
|
4237
4347
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -4296,7 +4406,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4296
4406
|
/**
|
|
4297
4407
|
* List vertices
|
|
4298
4408
|
* Lists latest vertices on the X-Chain.
|
|
4299
|
-
* @returns ListXChainVerticesResponse
|
|
4409
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4300
4410
|
* @throws ApiError
|
|
4301
4411
|
*/
|
|
4302
4412
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -4320,7 +4430,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4320
4430
|
/**
|
|
4321
4431
|
* Get vertex
|
|
4322
4432
|
* Gets a single vertex on the X-Chain.
|
|
4323
|
-
* @returns XChainVertex
|
|
4433
|
+
* @returns XChainVertex Successful response
|
|
4324
4434
|
* @throws ApiError
|
|
4325
4435
|
*/
|
|
4326
4436
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -4340,7 +4450,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4340
4450
|
/**
|
|
4341
4451
|
* List vertices by height
|
|
4342
4452
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
4343
|
-
* @returns ListXChainVerticesResponse
|
|
4453
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4344
4454
|
* @throws ApiError
|
|
4345
4455
|
*/
|
|
4346
4456
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4402,7 +4512,7 @@ declare class RpcService {
|
|
|
4402
4512
|
/**
|
|
4403
4513
|
* Calls JSON-RPC method
|
|
4404
4514
|
* Calls JSON-RPC method.
|
|
4405
|
-
* @returns any
|
|
4515
|
+
* @returns any Successful response
|
|
4406
4516
|
* @throws ApiError
|
|
4407
4517
|
*/
|
|
4408
4518
|
rpc({ chainId, requestBody, }: {
|
|
@@ -4554,7 +4664,7 @@ declare class TeleporterService {
|
|
|
4554
4664
|
/**
|
|
4555
4665
|
* Get a teleporter message
|
|
4556
4666
|
* Gets a teleporter message by message ID.
|
|
4557
|
-
* @returns any
|
|
4667
|
+
* @returns any Successful response
|
|
4558
4668
|
* @throws ApiError
|
|
4559
4669
|
*/
|
|
4560
4670
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -4566,7 +4676,7 @@ declare class TeleporterService {
|
|
|
4566
4676
|
/**
|
|
4567
4677
|
* List teleporter messages
|
|
4568
4678
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4569
|
-
* @returns ListTeleporterMessagesResponse
|
|
4679
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4570
4680
|
* @throws ApiError
|
|
4571
4681
|
*/
|
|
4572
4682
|
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
@@ -4603,13 +4713,37 @@ declare class TeleporterService {
|
|
|
4603
4713
|
*/
|
|
4604
4714
|
network?: NetworkType;
|
|
4605
4715
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4716
|
+
/**
|
|
4717
|
+
* List teleporter messages by address
|
|
4718
|
+
* Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
4719
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4720
|
+
* @throws ApiError
|
|
4721
|
+
*/
|
|
4722
|
+
listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
4723
|
+
/**
|
|
4724
|
+
* An EVM address.
|
|
4725
|
+
*/
|
|
4726
|
+
address: string;
|
|
4727
|
+
/**
|
|
4728
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4729
|
+
*/
|
|
4730
|
+
pageToken?: string;
|
|
4731
|
+
/**
|
|
4732
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4733
|
+
*/
|
|
4734
|
+
pageSize?: number;
|
|
4735
|
+
/**
|
|
4736
|
+
* mainnet or testnet.
|
|
4737
|
+
*/
|
|
4738
|
+
network?: NetworkType;
|
|
4739
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4606
4740
|
}
|
|
4607
4741
|
|
|
4608
4742
|
type AddressesChangeRequest = {
|
|
4609
4743
|
/**
|
|
4610
4744
|
* Ethereum address(es) for the address_activity event type
|
|
4611
4745
|
*/
|
|
4612
|
-
addresses: Array<
|
|
4746
|
+
addresses: Array<string>;
|
|
4613
4747
|
};
|
|
4614
4748
|
|
|
4615
4749
|
type AddressActivityMetadata = {
|
|
@@ -4710,7 +4844,7 @@ declare class WebhooksService {
|
|
|
4710
4844
|
/**
|
|
4711
4845
|
* Create a webhook
|
|
4712
4846
|
* Create a new webhook.
|
|
4713
|
-
* @returns WebhookResponse
|
|
4847
|
+
* @returns WebhookResponse Successful response
|
|
4714
4848
|
* @throws ApiError
|
|
4715
4849
|
*/
|
|
4716
4850
|
createWebhook({ requestBody, }: {
|
|
@@ -4719,7 +4853,7 @@ declare class WebhooksService {
|
|
|
4719
4853
|
/**
|
|
4720
4854
|
* List webhooks
|
|
4721
4855
|
* Lists webhooks for the user.
|
|
4722
|
-
* @returns ListWebhooksResponse
|
|
4856
|
+
* @returns ListWebhooksResponse Successful response
|
|
4723
4857
|
* @throws ApiError
|
|
4724
4858
|
*/
|
|
4725
4859
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -4739,7 +4873,7 @@ declare class WebhooksService {
|
|
|
4739
4873
|
/**
|
|
4740
4874
|
* Get a webhook by ID
|
|
4741
4875
|
* Retrieves a webhook by ID.
|
|
4742
|
-
* @returns WebhookResponse
|
|
4876
|
+
* @returns WebhookResponse Successful response
|
|
4743
4877
|
* @throws ApiError
|
|
4744
4878
|
*/
|
|
4745
4879
|
getWebhook({ id, }: {
|
|
@@ -4751,7 +4885,7 @@ declare class WebhooksService {
|
|
|
4751
4885
|
/**
|
|
4752
4886
|
* Deactivate a webhook
|
|
4753
4887
|
* Deactivates a webhook by ID.
|
|
4754
|
-
* @returns WebhookResponse
|
|
4888
|
+
* @returns WebhookResponse Successful response
|
|
4755
4889
|
* @throws ApiError
|
|
4756
4890
|
*/
|
|
4757
4891
|
deactivateWebhook({ id, }: {
|
|
@@ -4763,7 +4897,7 @@ declare class WebhooksService {
|
|
|
4763
4897
|
/**
|
|
4764
4898
|
* Update a webhook
|
|
4765
4899
|
* Updates an existing webhook.
|
|
4766
|
-
* @returns WebhookResponse
|
|
4900
|
+
* @returns WebhookResponse Successful response
|
|
4767
4901
|
* @throws ApiError
|
|
4768
4902
|
*/
|
|
4769
4903
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4776,21 +4910,21 @@ declare class WebhooksService {
|
|
|
4776
4910
|
/**
|
|
4777
4911
|
* Generate a shared secret
|
|
4778
4912
|
* Generates a new shared secret.
|
|
4779
|
-
* @returns SharedSecretsResponse
|
|
4913
|
+
* @returns SharedSecretsResponse Successful response
|
|
4780
4914
|
* @throws ApiError
|
|
4781
4915
|
*/
|
|
4782
4916
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4783
4917
|
/**
|
|
4784
4918
|
* Get a shared secret
|
|
4785
4919
|
* Get a previously generated shared secret.
|
|
4786
|
-
* @returns SharedSecretsResponse
|
|
4920
|
+
* @returns SharedSecretsResponse Successful response
|
|
4787
4921
|
* @throws ApiError
|
|
4788
4922
|
*/
|
|
4789
4923
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4790
4924
|
/**
|
|
4791
4925
|
* Add addresses to webhook
|
|
4792
4926
|
* Add addresses to webhook.
|
|
4793
|
-
* @returns WebhookResponse
|
|
4927
|
+
* @returns WebhookResponse Successful response
|
|
4794
4928
|
* @throws ApiError
|
|
4795
4929
|
*/
|
|
4796
4930
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4803,7 +4937,7 @@ declare class WebhooksService {
|
|
|
4803
4937
|
/**
|
|
4804
4938
|
* Remove addresses from webhook
|
|
4805
4939
|
* Remove addresses from webhook.
|
|
4806
|
-
* @returns WebhookResponse
|
|
4940
|
+
* @returns WebhookResponse Successful response
|
|
4807
4941
|
* @throws ApiError
|
|
4808
4942
|
*/
|
|
4809
4943
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4816,7 +4950,7 @@ declare class WebhooksService {
|
|
|
4816
4950
|
/**
|
|
4817
4951
|
* List adresses by webhook
|
|
4818
4952
|
* List adresses by webhook.
|
|
4819
|
-
* @returns ListWebhookAddressesResponse
|
|
4953
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
4820
4954
|
* @throws ApiError
|
|
4821
4955
|
*/
|
|
4822
4956
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -4878,6 +5012,70 @@ declare class ApiError extends Error {
|
|
|
4878
5012
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4879
5013
|
}
|
|
4880
5014
|
|
|
5015
|
+
type BadGateway = {
|
|
5016
|
+
/**
|
|
5017
|
+
* The error message describing the reason for the exception
|
|
5018
|
+
*/
|
|
5019
|
+
message: (string | Array<string>);
|
|
5020
|
+
/**
|
|
5021
|
+
* The HTTP status code of the response
|
|
5022
|
+
*/
|
|
5023
|
+
statusCode: number;
|
|
5024
|
+
/**
|
|
5025
|
+
* The type of error
|
|
5026
|
+
*/
|
|
5027
|
+
error: string;
|
|
5028
|
+
};
|
|
5029
|
+
|
|
5030
|
+
type BadRequest = {
|
|
5031
|
+
/**
|
|
5032
|
+
* The error message describing the reason for the exception
|
|
5033
|
+
*/
|
|
5034
|
+
message: (string | Array<string>);
|
|
5035
|
+
/**
|
|
5036
|
+
* The HTTP status code of the response
|
|
5037
|
+
*/
|
|
5038
|
+
statusCode: number;
|
|
5039
|
+
/**
|
|
5040
|
+
* The type of error
|
|
5041
|
+
*/
|
|
5042
|
+
error: string;
|
|
5043
|
+
};
|
|
5044
|
+
|
|
5045
|
+
type DataListChainsResponse = {
|
|
5046
|
+
chains: Array<ChainInfo>;
|
|
5047
|
+
};
|
|
5048
|
+
|
|
5049
|
+
type Forbidden = {
|
|
5050
|
+
/**
|
|
5051
|
+
* The error message describing the reason for the exception
|
|
5052
|
+
*/
|
|
5053
|
+
message: (string | Array<string>);
|
|
5054
|
+
/**
|
|
5055
|
+
* The HTTP status code of the response
|
|
5056
|
+
*/
|
|
5057
|
+
statusCode: number;
|
|
5058
|
+
/**
|
|
5059
|
+
* The type of error
|
|
5060
|
+
*/
|
|
5061
|
+
error: string;
|
|
5062
|
+
};
|
|
5063
|
+
|
|
5064
|
+
type InternalServerError = {
|
|
5065
|
+
/**
|
|
5066
|
+
* The error message describing the reason for the exception
|
|
5067
|
+
*/
|
|
5068
|
+
message: (string | Array<string>);
|
|
5069
|
+
/**
|
|
5070
|
+
* The HTTP status code of the response
|
|
5071
|
+
*/
|
|
5072
|
+
statusCode: number;
|
|
5073
|
+
/**
|
|
5074
|
+
* The type of error
|
|
5075
|
+
*/
|
|
5076
|
+
error: string;
|
|
5077
|
+
};
|
|
5078
|
+
|
|
4881
5079
|
type NextPageToken = {
|
|
4882
5080
|
/**
|
|
4883
5081
|
* 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 +5083,64 @@ type NextPageToken = {
|
|
|
4885
5083
|
nextPageToken?: string;
|
|
4886
5084
|
};
|
|
4887
5085
|
|
|
4888
|
-
|
|
5086
|
+
type NotFound = {
|
|
5087
|
+
/**
|
|
5088
|
+
* The error message describing the reason for the exception
|
|
5089
|
+
*/
|
|
5090
|
+
message: (string | Array<string>);
|
|
5091
|
+
/**
|
|
5092
|
+
* The HTTP status code of the response
|
|
5093
|
+
*/
|
|
5094
|
+
statusCode: number;
|
|
5095
|
+
/**
|
|
5096
|
+
* The type of error
|
|
5097
|
+
*/
|
|
5098
|
+
error: string;
|
|
5099
|
+
};
|
|
5100
|
+
|
|
5101
|
+
type ServiceUnavailable = {
|
|
5102
|
+
/**
|
|
5103
|
+
* The error message describing the reason for the exception
|
|
5104
|
+
*/
|
|
5105
|
+
message: (string | Array<string>);
|
|
5106
|
+
/**
|
|
5107
|
+
* The HTTP status code of the response
|
|
5108
|
+
*/
|
|
5109
|
+
statusCode: number;
|
|
5110
|
+
/**
|
|
5111
|
+
* The type of error
|
|
5112
|
+
*/
|
|
5113
|
+
error: string;
|
|
5114
|
+
};
|
|
5115
|
+
|
|
5116
|
+
type TooManyRequests = {
|
|
5117
|
+
/**
|
|
5118
|
+
* The error message describing the reason for the exception
|
|
5119
|
+
*/
|
|
5120
|
+
message: (string | Array<string>);
|
|
5121
|
+
/**
|
|
5122
|
+
* The HTTP status code of the response
|
|
5123
|
+
*/
|
|
5124
|
+
statusCode: number;
|
|
5125
|
+
/**
|
|
5126
|
+
* The type of error
|
|
5127
|
+
*/
|
|
5128
|
+
error: string;
|
|
5129
|
+
};
|
|
5130
|
+
|
|
5131
|
+
type Unauthorized = {
|
|
5132
|
+
/**
|
|
5133
|
+
* The error message describing the reason for the exception
|
|
5134
|
+
*/
|
|
5135
|
+
message: (string | Array<string>);
|
|
5136
|
+
/**
|
|
5137
|
+
* The HTTP status code of the response
|
|
5138
|
+
*/
|
|
5139
|
+
statusCode: number;
|
|
5140
|
+
/**
|
|
5141
|
+
* The type of error
|
|
5142
|
+
*/
|
|
5143
|
+
error: string;
|
|
5144
|
+
};
|
|
5145
|
+
|
|
5146
|
+
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, DataListChainsResponse, 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, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, 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 };
|