@avalabs/glacier-sdk 3.1.0-canary.ca038e3.0 → 3.1.0-canary.dbb51d6.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 CHANGED
@@ -625,7 +625,7 @@ declare class EvmBalancesService {
625
625
  */
626
626
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
627
627
  /**
628
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
628
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
629
629
  */
630
630
  chainId: string;
631
631
  /**
@@ -653,7 +653,7 @@ declare class EvmBalancesService {
653
653
  */
654
654
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
655
655
  /**
656
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
656
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
657
657
  */
658
658
  chainId: string;
659
659
  /**
@@ -695,7 +695,7 @@ declare class EvmBalancesService {
695
695
  */
696
696
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
697
697
  /**
698
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
698
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
699
699
  */
700
700
  chainId: string;
701
701
  /**
@@ -727,7 +727,7 @@ declare class EvmBalancesService {
727
727
  */
728
728
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
729
729
  /**
730
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
730
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
731
731
  */
732
732
  chainId: string;
733
733
  /**
@@ -761,7 +761,7 @@ declare class EvmBalancesService {
761
761
  */
762
762
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
763
763
  /**
764
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
764
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
765
765
  */
766
766
  chainId: string;
767
767
  /**
@@ -890,7 +890,7 @@ declare class EvmBlocksService {
890
890
  */
891
891
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
892
892
  /**
893
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
893
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
894
894
  */
895
895
  chainId: string;
896
896
  /**
@@ -910,7 +910,7 @@ declare class EvmBlocksService {
910
910
  */
911
911
  getBlock({ chainId, blockId, }: {
912
912
  /**
913
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
913
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
914
914
  */
915
915
  chainId: string;
916
916
  /**
@@ -1011,7 +1011,8 @@ type ListChainsResponse = {
1011
1011
  declare enum Network {
1012
1012
  MAINNET = "mainnet",
1013
1013
  FUJI = "fuji",
1014
- TESTNET = "testnet"
1014
+ TESTNET = "testnet",
1015
+ DEVNET = "devnet"
1015
1016
  }
1016
1017
 
1017
1018
  declare class EvmChainsService {
@@ -1041,7 +1042,7 @@ declare class EvmChainsService {
1041
1042
  */
1042
1043
  getChainInfo({ chainId, }: {
1043
1044
  /**
1044
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1045
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1045
1046
  */
1046
1047
  chainId: string;
1047
1048
  }): CancelablePromise<GetChainResponse>;
@@ -1336,7 +1337,7 @@ declare class EvmContractsService {
1336
1337
  */
1337
1338
  getContractMetadata({ chainId, address, }: {
1338
1339
  /**
1339
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1340
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1340
1341
  */
1341
1342
  chainId: string;
1342
1343
  /**
@@ -1352,7 +1353,7 @@ declare class EvmContractsService {
1352
1353
  */
1353
1354
  updateContractInfo({ chainId, address, requestBody, }: {
1354
1355
  /**
1355
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1356
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1356
1357
  */
1357
1358
  chainId: string;
1358
1359
  /**
@@ -1902,7 +1903,7 @@ declare class EvmTransactionsService {
1902
1903
  */
1903
1904
  getDeploymentTransaction({ chainId, address, currency, }: {
1904
1905
  /**
1905
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1906
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1906
1907
  */
1907
1908
  chainId: string;
1908
1909
  /**
@@ -1922,7 +1923,7 @@ declare class EvmTransactionsService {
1922
1923
  */
1923
1924
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1924
1925
  /**
1925
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1926
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1926
1927
  */
1927
1928
  chainId: string;
1928
1929
  /**
@@ -1946,7 +1947,7 @@ declare class EvmTransactionsService {
1946
1947
  */
1947
1948
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1948
1949
  /**
1949
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1950
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1950
1951
  */
1951
1952
  chainId: string;
1952
1953
  /**
@@ -1980,7 +1981,7 @@ declare class EvmTransactionsService {
1980
1981
  */
1981
1982
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1982
1983
  /**
1983
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1984
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1984
1985
  */
1985
1986
  chainId: string;
1986
1987
  /**
@@ -2016,7 +2017,7 @@ declare class EvmTransactionsService {
2016
2017
  */
2017
2018
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2018
2019
  /**
2019
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2020
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2020
2021
  */
2021
2022
  chainId: string;
2022
2023
  /**
@@ -2048,7 +2049,7 @@ declare class EvmTransactionsService {
2048
2049
  */
2049
2050
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2050
2051
  /**
2051
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2052
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2052
2053
  */
2053
2054
  chainId: string;
2054
2055
  /**
@@ -2080,7 +2081,7 @@ declare class EvmTransactionsService {
2080
2081
  */
2081
2082
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2082
2083
  /**
2083
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2084
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2084
2085
  */
2085
2086
  chainId: string;
2086
2087
  /**
@@ -2112,7 +2113,7 @@ declare class EvmTransactionsService {
2112
2113
  */
2113
2114
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2114
2115
  /**
2115
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2116
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2116
2117
  */
2117
2118
  chainId: string;
2118
2119
  /**
@@ -2146,7 +2147,7 @@ declare class EvmTransactionsService {
2146
2147
  */
2147
2148
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2148
2149
  /**
2149
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2150
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2150
2151
  */
2151
2152
  chainId: string;
2152
2153
  /**
@@ -2178,7 +2179,7 @@ declare class EvmTransactionsService {
2178
2179
  */
2179
2180
  getTransaction({ chainId, txHash, }: {
2180
2181
  /**
2181
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2182
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2182
2183
  */
2183
2184
  chainId: string;
2184
2185
  /**
@@ -2194,7 +2195,7 @@ declare class EvmTransactionsService {
2194
2195
  */
2195
2196
  getTransactionsForBlock({ chainId, blockId, }: {
2196
2197
  /**
2197
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2198
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2198
2199
  */
2199
2200
  chainId: string;
2200
2201
  /**
@@ -2210,7 +2211,7 @@ declare class EvmTransactionsService {
2210
2211
  */
2211
2212
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2212
2213
  /**
2213
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2214
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2214
2215
  */
2215
2216
  chainId: string;
2216
2217
  /**
@@ -2263,7 +2264,7 @@ declare class NfTsService {
2263
2264
  */
2264
2265
  reindexNft({ chainId, address, tokenId, }: {
2265
2266
  /**
2266
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2267
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2267
2268
  */
2268
2269
  chainId: string;
2269
2270
  /**
@@ -2283,7 +2284,7 @@ declare class NfTsService {
2283
2284
  */
2284
2285
  listTokens({ chainId, address, pageToken, pageSize, }: {
2285
2286
  /**
2286
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2287
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2287
2288
  */
2288
2289
  chainId: string;
2289
2290
  /**
@@ -2307,7 +2308,7 @@ declare class NfTsService {
2307
2308
  */
2308
2309
  getTokenDetails({ chainId, address, tokenId, }: {
2309
2310
  /**
2310
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2311
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2311
2312
  */
2312
2313
  chainId: string;
2313
2314
  /**
@@ -2337,11 +2338,11 @@ type CreateEvmTransactionExportRequest = {
2337
2338
  /**
2338
2339
  * @deprecated
2339
2340
  */
2340
- startDate: string;
2341
+ startDate?: string;
2341
2342
  /**
2342
2343
  * @deprecated
2343
2344
  */
2344
- endDate: string;
2345
+ endDate?: string;
2345
2346
  options: EvmNetworkOptions;
2346
2347
  };
2347
2348
 
@@ -2354,7 +2355,7 @@ declare enum PrimaryNetworkOperationType {
2354
2355
  type PrimaryNetworkOptions = {
2355
2356
  addresses?: Array<string>;
2356
2357
  cChainEvmAddresses?: Array<string>;
2357
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2358
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2358
2359
  };
2359
2360
 
2360
2361
  type CreatePrimaryNetworkTransactionExportRequest = {
@@ -2364,11 +2365,11 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2364
2365
  /**
2365
2366
  * @deprecated
2366
2367
  */
2367
- startDate: string;
2368
+ startDate?: string;
2368
2369
  /**
2369
2370
  * @deprecated
2370
2371
  */
2371
- endDate: string;
2372
+ endDate?: string;
2372
2373
  options: PrimaryNetworkOptions;
2373
2374
  };
2374
2375
 
@@ -2446,8 +2447,10 @@ declare enum BlockchainIds {
2446
2447
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2447
2448
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2448
2449
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2450
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2449
2451
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2450
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2452
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2453
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2451
2454
  }
2452
2455
 
2453
2456
  type ChainAddressChainIdMap = {
@@ -2818,6 +2821,7 @@ type XChainAssetDetails = {
2818
2821
  declare enum XChainId {
2819
2822
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2820
2823
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2824
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2821
2825
  X_CHAIN = "x-chain"
2822
2826
  }
2823
2827
 
@@ -3084,8 +3088,10 @@ declare enum BlockchainId {
3084
3088
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3085
3089
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3086
3090
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3091
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3087
3092
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3088
3093
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3094
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
3089
3095
  P_CHAIN = "p-chain",
3090
3096
  X_CHAIN = "x-chain",
3091
3097
  C_CHAIN = "c-chain"
@@ -3124,7 +3130,8 @@ type CChainAtomicBalances = {
3124
3130
 
3125
3131
  declare enum PrimaryNetwork {
3126
3132
  MAINNET = "mainnet",
3127
- FUJI = "fuji"
3133
+ FUJI = "fuji",
3134
+ DEVNET = "devnet"
3128
3135
  }
3129
3136
 
3130
3137
  declare enum PrimaryNetworkChainName {
@@ -4191,11 +4198,7 @@ declare class PrimaryNetworkTransactionsService {
4191
4198
  * @returns any Successful response
4192
4199
  * @throws ApiError
4193
4200
  */
4194
- listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4195
- /**
4196
- * 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.
4197
- */
4198
- addresses: string;
4201
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4199
4202
  /**
4200
4203
  * A primary network blockchain id or alias.
4201
4204
  */
@@ -4204,6 +4207,10 @@ declare class PrimaryNetworkTransactionsService {
4204
4207
  * Either mainnet or testnet/fuji.
4205
4208
  */
4206
4209
  network: Network;
4210
+ /**
4211
+ * 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.
4212
+ */
4213
+ addresses?: string;
4207
4214
  /**
4208
4215
  * Query param for filtering items based on transaction types.
4209
4216
  */
@@ -4515,7 +4522,7 @@ declare class RpcService {
4515
4522
  */
4516
4523
  rpc({ chainId, requestBody, }: {
4517
4524
  /**
4518
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4525
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4519
4526
  */
4520
4527
  chainId: string;
4521
4528
  requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);