@covalenthq/client-sdk 0.9.3 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +72 -51
  2. package/dist/cjs/index.js +59 -14
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/services/BalanceService.d.ts +8 -6
  5. package/dist/cjs/services/BaseService.d.ts +12 -1
  6. package/dist/cjs/services/CovalentClient.d.ts +3 -3
  7. package/dist/cjs/services/NftService.d.ts +12 -8
  8. package/dist/cjs/services/PricingService.d.ts +13 -2
  9. package/dist/cjs/services/TransactionService.d.ts +13 -11
  10. package/dist/cjs/services/XykService.d.ts +50 -50
  11. package/dist/cjs/util/Chains.d.ts +29 -4
  12. package/dist/cjs/util/types/BalanceServiceTypes.d.ts +6 -14
  13. package/dist/cjs/util/types/BaseServiceTypes.d.ts +9 -1
  14. package/dist/cjs/util/types/GenericTypes.d.ts +12 -0
  15. package/dist/cjs/util/types/NftServiceTypes.d.ts +8 -8
  16. package/dist/cjs/util/types/PricingServiceTypes.d.ts +4 -2
  17. package/dist/cjs/util/types/TransactionServiceTypes.d.ts +10 -10
  18. package/dist/cjs/util/types/XykServiceTypes.d.ts +51 -51
  19. package/dist/es/index.js +59 -14
  20. package/dist/es/index.js.map +1 -1
  21. package/dist/es/services/BalanceService.d.ts +8 -6
  22. package/dist/es/services/BaseService.d.ts +12 -1
  23. package/dist/es/services/CovalentClient.d.ts +3 -3
  24. package/dist/es/services/NftService.d.ts +12 -8
  25. package/dist/es/services/PricingService.d.ts +13 -2
  26. package/dist/es/services/TransactionService.d.ts +13 -11
  27. package/dist/es/services/XykService.d.ts +50 -50
  28. package/dist/es/util/Chains.d.ts +29 -4
  29. package/dist/es/util/types/BalanceServiceTypes.d.ts +6 -14
  30. package/dist/es/util/types/BaseServiceTypes.d.ts +9 -1
  31. package/dist/es/util/types/GenericTypes.d.ts +12 -0
  32. package/dist/es/util/types/NftServiceTypes.d.ts +8 -8
  33. package/dist/es/util/types/PricingServiceTypes.d.ts +4 -2
  34. package/dist/es/util/types/TransactionServiceTypes.d.ts +10 -10
  35. package/dist/es/util/types/XykServiceTypes.d.ts +51 -51
  36. package/dist/esm/index.js +59 -14
  37. package/dist/esm/index.js.map +1 -1
  38. package/dist/esm/services/BalanceService.d.ts +8 -6
  39. package/dist/esm/services/BaseService.d.ts +12 -1
  40. package/dist/esm/services/CovalentClient.d.ts +3 -3
  41. package/dist/esm/services/NftService.d.ts +12 -8
  42. package/dist/esm/services/PricingService.d.ts +13 -2
  43. package/dist/esm/services/TransactionService.d.ts +13 -11
  44. package/dist/esm/services/XykService.d.ts +50 -50
  45. package/dist/esm/util/Chains.d.ts +29 -4
  46. package/dist/esm/util/types/BalanceServiceTypes.d.ts +6 -14
  47. package/dist/esm/util/types/BaseServiceTypes.d.ts +9 -1
  48. package/dist/esm/util/types/GenericTypes.d.ts +12 -0
  49. package/dist/esm/util/types/NftServiceTypes.d.ts +8 -8
  50. package/dist/esm/util/types/PricingServiceTypes.d.ts +4 -2
  51. package/dist/esm/util/types/TransactionServiceTypes.d.ts +10 -10
  52. package/dist/esm/util/types/XykServiceTypes.d.ts +51 -51
  53. package/dist/services/BalanceService.d.ts +8 -6
  54. package/dist/services/BalanceService.js +1 -0
  55. package/dist/services/BalanceService.js.map +1 -1
  56. package/dist/services/BaseService.d.ts +12 -1
  57. package/dist/services/BaseService.js +9 -1
  58. package/dist/services/BaseService.js.map +1 -1
  59. package/dist/services/CovalentClient.d.ts +3 -3
  60. package/dist/services/CovalentClient.js +1 -1
  61. package/dist/services/NftService.d.ts +12 -8
  62. package/dist/services/NftService.js +2 -0
  63. package/dist/services/NftService.js.map +1 -1
  64. package/dist/services/PricingService.d.ts +13 -2
  65. package/dist/services/PricingService.js +8 -0
  66. package/dist/services/PricingService.js.map +1 -1
  67. package/dist/services/TransactionService.d.ts +13 -11
  68. package/dist/services/TransactionService.js +1 -0
  69. package/dist/services/TransactionService.js.map +1 -1
  70. package/dist/services/XykService.d.ts +50 -50
  71. package/dist/services/XykService.js +6 -6
  72. package/dist/services/XykService.js.map +1 -1
  73. package/dist/util/Chains.d.ts +29 -4
  74. package/dist/util/Chains.js +28 -3
  75. package/dist/util/Chains.js.map +1 -1
  76. package/dist/util/types/BalanceServiceTypes.d.ts +6 -14
  77. package/dist/util/types/BaseServiceTypes.d.ts +9 -1
  78. package/dist/util/types/GenericTypes.d.ts +12 -0
  79. package/dist/util/types/NftServiceTypes.d.ts +8 -8
  80. package/dist/util/types/PricingServiceTypes.d.ts +4 -2
  81. package/dist/util/types/TransactionServiceTypes.d.ts +10 -10
  82. package/dist/util/types/XykServiceTypes.d.ts +51 -51
  83. package/package.json +1 -1
@@ -27,10 +27,10 @@ declare class BalanceItem {
27
27
  /** * A display-friendly name for the contract. */
28
28
  contract_display_name: string;
29
29
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
30
- supports_erc: string;
30
+ supports_erc: string[];
31
31
  /** * The contract logo URL. */
32
32
  logo_url: string;
33
- /** * The balance item logo URLs. */
33
+ /** * The contract logo URLs. */
34
34
  logo_urls: LogoUrls;
35
35
  /** * The timestamp when the token was transferred. */
36
36
  last_transferred_at: Date;
@@ -82,6 +82,8 @@ declare class NftData {
82
82
  token_url: string;
83
83
  /** * The original minter. */
84
84
  original_owner: string;
85
+ /** * The current holder of this NFT. */
86
+ current_owner: string;
85
87
  external_data: NftExternalData;
86
88
  /** * If `true`, the asset data is available from the Covalent CDN. */
87
89
  asset_cached: boolean;
@@ -243,7 +245,7 @@ declare class ContractMetadata {
243
245
  /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
244
246
  contract_address: string;
245
247
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
246
- supports_erc: string;
248
+ supports_erc: string[];
247
249
  /** * The contract logo URL. */
248
250
  logo_url: string;
249
251
  constructor(data: ContractMetadata);
@@ -327,7 +329,7 @@ declare class TokenHolder {
327
329
  /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
328
330
  contract_address: string;
329
331
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
330
- supports_erc: string;
332
+ supports_erc: string[];
331
333
  /** * The contract logo URL. */
332
334
  logo_url: string;
333
335
  /** * The requested address. */
@@ -365,7 +367,7 @@ declare class HistoricalBalanceItem {
365
367
  /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
366
368
  contract_address: string;
367
369
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
368
- supports_erc: string;
370
+ supports_erc: string[];
369
371
  /** * The contract logo URL. */
370
372
  logo_url: string;
371
373
  /** * The height of the block. */
@@ -417,7 +419,7 @@ declare class NativeBalanceItem {
417
419
  /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
418
420
  contract_address: string;
419
421
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
420
- supports_erc: string;
422
+ supports_erc: string[];
421
423
  /** * The contract logo URL. */
422
424
  logo_url: string;
423
425
  /** * The height of the block. */
@@ -59,11 +59,18 @@ declare class BlockHeightsResponse {
59
59
  /** * The requested chain name eg: `eth-mainnet`. */
60
60
  chain_name: string;
61
61
  /** * List of response items. */
62
- items: Block[];
62
+ items: BlockHeights[];
63
63
  /** * Pagination metadata. */
64
64
  pagination: Pagination;
65
65
  constructor(data: BlockHeightsResponse);
66
66
  }
67
+ declare class BlockHeights {
68
+ /** * The block signed timestamp in UTC. */
69
+ signed_at: Date;
70
+ /** * The block height. */
71
+ height: number;
72
+ constructor(data: BlockHeights);
73
+ }
67
74
  declare class Pagination {
68
75
  /** * True is there is another page. */
69
76
  has_more: boolean;
@@ -113,6 +120,8 @@ declare class GetLogsEvent {
113
120
  sender_address_label: string;
114
121
  /** * The contract logo URL. */
115
122
  sender_logo_url: string;
123
+ /** * The address of the deployed UniswapV2 like factory contract for this DEX. */
124
+ sender_factory_address: string;
116
125
  /** * The log events in raw. */
117
126
  raw_log_data: string;
118
127
  /** * The decoded item. */
@@ -170,6 +179,8 @@ declare class LogEvent {
170
179
  sender_address_label: string;
171
180
  /** * The contract logo URL. */
172
181
  sender_logo_url: string;
182
+ /** * The address of the deployed UniswapV2 like factory contract for this DEX. */
183
+ sender_factory_address: string;
173
184
  /** * The log events in raw. */
174
185
  raw_log_data: string;
175
186
  /** * The decoded item. */
@@ -5,11 +5,11 @@ import { NftService } from "./NftService";
5
5
  import { PricingService } from "./PricingService";
6
6
  import { TransactionService } from "./TransactionService";
7
7
  import { XykService } from "./XykService";
8
- export type Chain = "btc-mainnet" | "eth-mainnet" | "matic-mainnet" | "bsc-mainnet" | "avalanche-mainnet" | "optimism-mainnet" | "fantom-mainnet" | "moonbeam-mainnet" | "moonbeam-moonriver" | "rsk-mainnet" | "arbitrum-mainnet" | "palm-mainnet" | "klaytn-mainnet" | "heco-mainnet" | "nervos-godwoken-mainnet" | "axie-mainnet" | "evmos-mainnet" | "astar-mainnet" | "iotex-mainnet" | "harmony-mainnet" | "cronos-mainnet" | "aurora-mainnet" | "emerald-paratime-mainnet" | "boba-mainnet" | "eth-goerli" | "matic-mumbai" | "avalanche-testnet" | "bsc-testnet" | "moonbeam-moonbase-alpha" | "rsk-testnet" | "arbitrum-goerli" | "fantom-testnet" | "palm-testnet" | "heco-testnet" | "nervos-godwoken-testnet" | "evmos-testnet" | "astar-shiden" | "iotex-testnet" | "harmony-testnet" | "aurora-testnet" | "scroll-l2-testnet" | "scroll-sepolia-testnet" | "covalent-internal-network-v1" | "defi-kingdoms-mainnet" | "swimmer-mainnet" | "boba-avalanche-mainnet" | "boba-bobabeam-mainnet" | "boba-bnb-mainnet" | "boba-rinkeby-testnet" | "boba-bobabase-testnet" | "boba-bnb-testnet" | "boba-avalanche-testnet" | "klaytn-testnet" | "gather-mainnet" | "gather-testnet" | "skale-calypso" | "skale-mainnet" | "skale-razor" | "avalanche-dexalot-mainnet" | "skale-omnus" | "avalanche-dexalot-testnet" | "astar-shibuya" | "cronos-testnet" | "defi-kingdoms-testnet" | "metis-mainnet" | "metis-stardust" | "milkomeda-a1-mainnet" | "milkomeda-a1-devnet" | "milkomeda-c1-mainnet" | "milkomeda-c1-devnet" | "swimmer-testnet" | "solana-mainnet" | "skale-europa" | "meter-mainnet" | "meter-testnet" | "skale-exorde" | "boba-goerli" | "neon-testnet" | "skale-staging-uum" | "skale-staging-lcc" | "arbitrum-nova-mainnet" | "canto-mainnet" | "bittorrent-mainnet" | "bittorrent-testnet" | "flarenetworks-flare-mainnet" | "flarenetworks-flare-testnet" | "flarenetworks-canary-mainnet" | "flarenetworks-canary-testnet" | "kcc-mainnet" | "kcc-testnet" | "polygon-zkevm-testnet" | "linea-testnet" | "base-testnet" | "mantle-testnet" | "scroll-alpha-testnet" | "oasys-mainnet" | "oasys-testnet" | "findora-mainnet" | "findora-forge-testnet" | "sx-mainnet" | "oasis-sapphire-mainnet" | "oasis-sapphire-testnet" | "optimism-goerli" | "polygon-zkevm-mainnet" | "horizen-yuma-testnet" | "clv-parachain" | "energi-mainnet" | "energi-testnet" | "horizen-gobi-testnet" | "eth-sepolia" | "skale-nebula" | "skale-battleground" | "avalanche-meld-testnet" | "gunzilla-testnet" | "ultron-mainnet" | "ultron-testnet" | "zora-mainnet" | "zora-testnet" | "neon-mainnet" | "avalanche-shrapnel-mainnet" | "base-mainnet" | "mantle-mainnet" | "avalanche-loco-legends-mainnet" | "linea-mainnet" | "horizen-eon-mainnet" | "avalanche-numbers" | "avalanche-dos" | "avalanche-step-network" | "avalanche-xplus" | "avalanche-xanachain" | "avalanche-meld-mainnet" | "opside-public-zkevm" | "opside-law-chain" | "avalanche-shrapnel-testnet" | "avalanche-loco-legends-testnet" | "opside-cb-zkevm" | "opside-pre-alpha-testnet" | "opside-era7" | "opside-xthrill" | "zksync-mainnet" | "metis-testnet" | "zksync-testnet" | "avalanche-blitz-testnet" | "avalanche-d-chain-testnet" | "avalanche-green-dot-testnet" | "avalanche-mintara-testnet" | "avalanche-beam-testnet" | "bnb-meta-apes-mainnet" | "bnb-antimatter-mainnet" | "bnb-antimatter-testnet" | "bnb-opbnb-testnet" | "opside-debox" | "opside-jackbot" | "opside-odx-zkevm-testnet" | "opside-readon-content-testnet" | "opside-relation" | "opside-soquest-zkevm" | "opside-vip3" | "opside-zkmeta" | "avalanche-pulsar-testnet" | "avalanche-uptn" | "bnb-fncy-mainnet" | "zetachain-testnet" | "kinto-testnet" | "mode-testnet" | "loot-mainnet" | "bnb-fncy-testnet" | "manta-testnet" | "pgn-mainnet" | "pgn-testnet" | "gnosis-mainnet" | "gnosis-testnet" | "rollux-mainnet" | "rollux-testnet" | "taiko-jolnir-testnet" | "optimism-sepolia" | "bnb-opbnb-mainnet" | "telos-mainnet" | "telos-testnet" | "avalanche-hubble-exchange-testnet" | "avalanche-miho-testnet" | "avalanche-bulletin-testnet" | "avalanche-kiwi-testnet" | "avalanche-hero-testnet" | "avalanche-avacloud-testnet" | "avalanche-thirdweb-testnet" | "avalanche-mondrian-testnet" | "avalanche-conduit-testnet" | "avalanche-nmac-testnet" | "avalanche-orderly-testnet" | "avalanche-amplify-testnet" | "avalanche-mirai-testnet" | "avalanche-wagmi-testnet" | "avalanche-playa3ull-testnet" | "avalanche-beam-mainnet" | "scroll-mainnet" | "eth-holesky";
8
+ export type Chain = "btc-mainnet" | "eth-mainnet" | "matic-mainnet" | "bsc-mainnet" | "avalanche-mainnet" | "optimism-mainnet" | "fantom-mainnet" | "moonbeam-mainnet" | "moonbeam-moonriver" | "rsk-mainnet" | "arbitrum-mainnet" | "palm-mainnet" | "klaytn-mainnet" | "heco-mainnet" | "nervos-godwoken-mainnet" | "axie-mainnet" | "evmos-mainnet" | "astar-mainnet" | "iotex-mainnet" | "harmony-mainnet" | "cronos-mainnet" | "aurora-mainnet" | "emerald-paratime-mainnet" | "boba-mainnet" | "eth-goerli" | "matic-mumbai" | "avalanche-testnet" | "bsc-testnet" | "moonbeam-moonbase-alpha" | "rsk-testnet" | "arbitrum-goerli" | "fantom-testnet" | "palm-testnet" | "heco-testnet" | "nervos-godwoken-testnet" | "evmos-testnet" | "iotex-testnet" | "harmony-testnet" | "aurora-testnet" | "scroll-l2-testnet" | "scroll-sepolia-testnet" | "covalent-internal-network-v1" | "defi-kingdoms-mainnet" | "swimmer-mainnet" | "boba-avalanche-mainnet" | "boba-bobabeam-mainnet" | "boba-bnb-mainnet" | "boba-rinkeby-testnet" | "boba-bobabase-testnet" | "boba-bnb-testnet" | "boba-avalanche-testnet" | "klaytn-testnet" | "gather-mainnet" | "gather-testnet" | "skale-calypso" | "skale-mainnet" | "skale-razor" | "avalanche-dexalot-mainnet" | "skale-omnus" | "avalanche-dexalot-testnet" | "astar-shibuya" | "cronos-testnet" | "defi-kingdoms-testnet" | "metis-mainnet" | "metis-stardust" | "milkomeda-a1-mainnet" | "milkomeda-a1-devnet" | "milkomeda-c1-mainnet" | "milkomeda-c1-devnet" | "swimmer-testnet" | "solana-mainnet" | "skale-europa" | "meter-mainnet" | "meter-testnet" | "skale-exorde" | "boba-goerli" | "neon-testnet" | "skale-staging-uum" | "skale-staging-lcc" | "arbitrum-nova-mainnet" | "canto-mainnet" | "bittorrent-mainnet" | "bittorrent-testnet" | "flarenetworks-flare-mainnet" | "flarenetworks-flare-testnet" | "flarenetworks-canary-mainnet" | "flarenetworks-canary-testnet" | "kcc-mainnet" | "kcc-testnet" | "polygon-zkevm-testnet" | "linea-testnet" | "base-testnet" | "mantle-testnet" | "scroll-alpha-testnet" | "oasys-mainnet" | "oasys-testnet" | "findora-mainnet" | "findora-forge-testnet" | "sx-mainnet" | "oasis-sapphire-mainnet" | "oasis-sapphire-testnet" | "optimism-goerli" | "polygon-zkevm-mainnet" | "horizen-yuma-testnet" | "clv-parachain" | "energi-mainnet" | "energi-testnet" | "horizen-gobi-testnet" | "eth-sepolia" | "skale-nebula" | "skale-battleground" | "avalanche-meld-testnet" | "gunzilla-testnet" | "ultron-mainnet" | "ultron-testnet" | "zora-mainnet" | "zora-goerli-testnet" | "neon-mainnet" | "avalanche-shrapnel-mainnet" | "base-mainnet" | "mantle-mainnet" | "avalanche-loco-legends-mainnet" | "linea-mainnet" | "horizen-eon-mainnet" | "avalanche-numbers" | "avalanche-dos" | "avalanche-step-network" | "avalanche-xplus" | "avalanche-xanachain" | "avalanche-meld-mainnet" | "opside-public-zkevm" | "opside-law-chain" | "avalanche-shrapnel-testnet" | "avalanche-loco-legends-testnet" | "opside-cb-zkevm" | "opside-pre-alpha-testnet" | "opside-era7" | "opside-xthrill" | "zksync-mainnet" | "metis-testnet" | "zksync-testnet" | "avalanche-blitz-testnet" | "avalanche-d-chain-testnet" | "avalanche-green-dot-testnet" | "avalanche-mintara-testnet" | "avalanche-beam-testnet" | "bnb-meta-apes-mainnet" | "bnb-antimatter-mainnet" | "bnb-antimatter-testnet" | "bnb-opbnb-testnet" | "opside-debox" | "opside-jackbot" | "opside-odx-zkevm-testnet" | "opside-readon-content-testnet" | "opside-relation" | "opside-soquest-zkevm" | "opside-vip3" | "opside-zkmeta" | "avalanche-pulsar-testnet" | "avalanche-uptn" | "bnb-fncy-mainnet" | "zetachain-testnet" | "kinto-testnet" | "mode-testnet" | "loot-mainnet" | "bnb-fncy-testnet" | "manta-testnet" | "pgn-mainnet" | "pgn-testnet" | "gnosis-mainnet" | "gnosis-testnet" | "rollux-mainnet" | "rollux-testnet" | "taiko-jolnir-testnet" | "optimism-sepolia" | "bnb-opbnb-mainnet" | "telos-mainnet" | "telos-testnet" | "avalanche-hubble-exchange-testnet" | "avalanche-miho-testnet" | "avalanche-bulletin-testnet" | "avalanche-kiwi-testnet" | "avalanche-hero-testnet" | "avalanche-avacloud-testnet" | "avalanche-thirdweb-testnet" | "avalanche-mondrian-testnet" | "avalanche-conduit-testnet" | "avalanche-nmac-testnet" | "avalanche-orderly-testnet" | "avalanche-amplify-testnet" | "avalanche-mirai-testnet" | "avalanche-wagmi-testnet" | "avalanche-playa3ull-testnet" | "avalanche-beam-mainnet" | "scroll-mainnet" | "eth-holesky" | "tomochain-mainnet" | "tomochain-testnet" | "avalanche-jono11-testnet" | "base-sepolia-testnet" | "xai-testnet" | "arbitrum-sepolia" | "lumoz-public-zksync-v2" | "lumoz-decibling" | "lumoz-stark-sport" | "avalanche-lt0-testnet" | "avalanche-lt1-testnet" | "avalanche-lt2-testnet" | "avalanche-lt3-testnet" | "avalanche-lt4-testnet" | "avalanche-lt5-testnet" | "syndr-testnet" | "crossfi-evm-testnet" | "celo-mainnet" | "taiko-katla-testnet" | "movement-mevm-testnet" | "zora-sepolia-testnet" | "merlin-mainnet" | "merlin-testnet" | "avalanche-hubble-exchange-mainnet" | "xai-mainnet";
9
9
  export type Quote = "USD" | "CAD" | "EUR" | "SGD" | "INR" | "JPY" | "VND" | "CNY" | "KRW" | "RUB" | "TRY" | "NGN" | "ARS" | "AUD" | "CHF" | "GBP";
10
- export type ChainID = 20090103 | 1 | 137 | 56 | 43114 | 10 | 250 | 1284 | 1285 | 30 | 42161 | 11297108109 | 8217 | 128 | 71402 | 2020 | 9001 | 592 | 4689 | 1666600000 | 25 | 1313161554 | 42262 | 288 | 5 | 80001 | 43113 | 97 | 1287 | 31 | 421613 | 4002 | 11297108099 | 256 | 71401 | 9000 | 336 | 4690 | 1666700000 | 1313161555 | 534354 | 534351 | 1131378225 | 53935 | 73772 | 43288 | 1294 | 56288 | 28 | 1297 | 9728 | 4328 | 1001 | 192837465 | 356256156 | 1564830818 | 278611351 | 432204 | 1026062157 | 432201 | 81 | 338 | 335 | 1088 | 588 | 2002 | 200202 | 2001 | 200101 | 73773 | 1399811149 | 2046399126 | 82 | 83 | 2139927552 | 2888 | 245022926 | 344106930 | 476158412 | 42170 | 7700 | 119 | 1029 | 14 | 114 | 19 | 16 | 321 | 322 | 1422 | 59140 | 84531 | 5001 | 534353 | 248 | 9372 | 2152 | 2154 | 416 | 23294 | 23295 | 420 | 1101 | 1662 | 1024 | 39797 | 49797 | 1663 | 11155111 | 1482601649 | 644937893 | 222000222 | 49321 | 1231 | 1230 | 7777777 | 999 | 245022934 | 2044 | 8453 | 5000 | 262018 | 59144 | 7332 | 10507 | 7979 | 1234 | 1228 | 8888 | 333000333 | 12008 | 12011 | 2038 | 1995 | 12010 | 51178 | 12009 | 12012 | 324 | 599 | 280 | 1343 | 11115 | 6765897100 | 1079 | 13337 | 16350 | 1990 | 20221 | 5611 | 12018 | 12013 | 12020 | 12015 | 12016 | 12014 | 12017 | 12019 | 431234 | 6119 | 73 | 7001 | 42888 | 919 | 5151706 | 923018 | 3441005 | 424 | 58008 | 100 | 10200 | 570 | 57000 | 167007 | 11155420 | 204 | 40 | 41 | 321123 | 360163 | 78431 | 2037 | 17772 | 152703 | 894538 | 179188 | 78432 | 7777 | 986532 | 78430 | 2195 | 11111 | 3012 | 4337 | 534352 | 17000 | 88 | 89 | 20765 | 84532 | 47279324479 | 421614 | 12027 | 12028 | 12029 | 31330 | 31331 | 31332 | 31333 | 31334 | 31335 | 412346 | 8545 | 42220;
10
+ export type ChainID = 20090103 | 1 | 137 | 56 | 43114 | 10 | 250 | 1284 | 1285 | 30 | 42161 | 11297108109 | 8217 | 128 | 71402 | 2020 | 9001 | 592 | 4689 | 1666600000 | 25 | 1313161554 | 42262 | 288 | 5 | 80001 | 43113 | 97 | 1287 | 31 | 421613 | 4002 | 11297108099 | 256 | 71401 | 9000 | 4690 | 1666700000 | 1313161555 | 534354 | 534351 | 1131378225 | 53935 | 73772 | 43288 | 1294 | 56288 | 28 | 1297 | 9728 | 4328 | 1001 | 192837465 | 356256156 | 1564830818 | 278611351 | 432204 | 1026062157 | 432201 | 81 | 338 | 335 | 1088 | 588 | 2002 | 200202 | 2001 | 200101 | 73773 | 1399811149 | 2046399126 | 82 | 83 | 2139927552 | 2888 | 245022926 | 344106930 | 476158412 | 42170 | 7700 | 119 | 1029 | 14 | 114 | 19 | 16 | 321 | 322 | 1422 | 59140 | 84531 | 5001 | 534353 | 248 | 9372 | 2152 | 2154 | 416 | 23294 | 23295 | 420 | 1101 | 1662 | 1024 | 39797 | 49797 | 1663 | 11155111 | 1482601649 | 644937893 | 222000222 | 49321 | 1231 | 1230 | 7777777 | 999 | 245022934 | 2044 | 8453 | 5000 | 262018 | 59144 | 7332 | 10507 | 7979 | 1234 | 1228 | 8888 | 333000333 | 12008 | 12011 | 2038 | 1995 | 12010 | 51178 | 12009 | 12012 | 324 | 599 | 280 | 1343 | 11115 | 6765897100 | 1079 | 13337 | 16350 | 1990 | 20221 | 5611 | 12018 | 12013 | 12020 | 12015 | 12016 | 12014 | 12017 | 12019 | 431234 | 6119 | 73 | 7001 | 42888 | 919 | 5151706 | 923018 | 3441005 | 424 | 58008 | 100 | 10200 | 570 | 57000 | 167007 | 11155420 | 204 | 40 | 41 | 321123 | 360163 | 78431 | 2037 | 17772 | 152703 | 894538 | 179188 | 78432 | 7777 | 986532 | 78430 | 2195 | 11111 | 3012 | 4337 | 534352 | 17000 | 88 | 89 | 20765 | 84532 | 47279324479 | 421614 | 12027 | 12028 | 12029 | 31330 | 31331 | 31332 | 31333 | 31334 | 31335 | 412346 | 8545 | 42220 | 167008 | 336 | 999999999 | 4200 | 686868 | 1992 | 660279;
11
11
  export type Source = "Ponder" | "GoldRush" | "Viem";
12
- export declare const userAgent = "com.covalenthq.sdk.typescript/0.9.3";
12
+ export declare const userAgent = "com.covalenthq.sdk.typescript/0.9.5";
13
13
  export declare class Response<T> {
14
14
  data: T;
15
15
  error: boolean;
@@ -54,13 +54,13 @@ declare class NftTokenContractBalanceItem {
54
54
  /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
55
55
  contract_address: string;
56
56
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
57
- supports_erc: string;
57
+ supports_erc: string[];
58
58
  /** * Denotes whether the token is suspected spam. Supports `eth-mainnet` and `matic-mainnet`. */
59
59
  is_spam: boolean;
60
60
  last_transfered_at: Date;
61
61
  /** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
62
62
  balance: bigint | null;
63
- balance_24h: number;
63
+ balance_24h: string;
64
64
  type: string;
65
65
  /** * The current floor price converted to fiat in `quote-currency`. The floor price is determined by the last minimum sale price within the last 30 days across all the supported markets where the collection is sold on. */
66
66
  floor_price_quote: number;
@@ -77,6 +77,8 @@ declare class NftData {
77
77
  token_url: string;
78
78
  /** * The original minter. */
79
79
  original_owner: string;
80
+ /** * The current holder of this NFT. */
81
+ current_owner: string;
80
82
  external_data: NftExternalData;
81
83
  /** * If `true`, the asset data is available from the Covalent CDN. */
82
84
  asset_cached: boolean;
@@ -150,7 +152,7 @@ declare class NftTransaction {
150
152
  /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
151
153
  contract_address: string;
152
154
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
153
- supports_erc: string;
155
+ supports_erc: string[];
154
156
  nft_transactions: NftTransactionItem[];
155
157
  /** * Denotes whether the token is suspected spam. Supports `eth-mainnet` and `matic-mainnet`. */
156
158
  is_spam: boolean;
@@ -181,11 +183,11 @@ declare class NftTransactionItem {
181
183
  value_quote: number;
182
184
  /** * A prettier version of the quote for rendering purposes. */
183
185
  pretty_value_quote: string;
184
- gas_offered: string;
186
+ gas_offered: number;
185
187
  /** * The gas spent for this tx. */
186
- gas_spent: string;
188
+ gas_spent: number;
187
189
  /** * The gas price at the time of this tx. */
188
- gas_price: string;
190
+ gas_price: number;
189
191
  /** * The total transaction fees (gas_price * gas_spent) paid for this tx, denoted in wei. */
190
192
  fees_paid: bigint | null;
191
193
  /** * The gas spent in `quote-currency` denomination. */
@@ -221,6 +223,8 @@ declare class LogEvent {
221
223
  sender_address_label: string;
222
224
  /** * The contract logo URL. */
223
225
  sender_logo_url: string;
226
+ /** * The address of the deployed UniswapV2 like factory contract for this DEX. */
227
+ sender_factory_address: string;
224
228
  /** * The log events in raw. */
225
229
  raw_log_data: string;
226
230
  /** * The decoded item. */
@@ -326,11 +330,11 @@ declare class NftOwnershipForCollectionItem {
326
330
  /** * The token's id. */
327
331
  token_id: bigint | null;
328
332
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
329
- supports_erc: string;
333
+ supports_erc: string[];
330
334
  last_transfered_at: Date;
331
335
  /** * Nft balance. */
332
336
  balance: bigint | null;
333
- balance_24h: number;
337
+ balance_24h: string;
334
338
  type: string;
335
339
  nft_data: NftData;
336
340
  constructor(data: NftOwnershipForCollectionItem);
@@ -10,18 +10,29 @@ declare class TokenPricesResponse {
10
10
  /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
11
11
  contract_address: string;
12
12
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
13
- supports_erc: string;
13
+ supports_erc: string[];
14
14
  /** * The contract logo URL. */
15
15
  logo_url: string;
16
16
  update_at: Date;
17
17
  /** * The requested quote currency eg: `USD`. */
18
18
  quote_currency: string;
19
+ /** * The contract logo URLs. */
20
+ logo_urls: LogoUrls;
19
21
  /** * List of response items. */
20
22
  prices: Price[];
21
23
  /** * List of response items. */
22
24
  items: Price[];
23
25
  constructor(data: TokenPricesResponse);
24
26
  }
27
+ declare class LogoUrls {
28
+ /** * The token logo URL. */
29
+ token_logo_url: string;
30
+ /** * The protocol logo URL. */
31
+ protocol_logo_url: string;
32
+ /** * The chain logo URL. */
33
+ chain_logo_url: string;
34
+ constructor(data: LogoUrls);
35
+ }
25
36
  declare class Price {
26
37
  contract_metadata: ContractMetadata;
27
38
  /** * The date of the price capture. */
@@ -42,7 +53,7 @@ declare class ContractMetadata {
42
53
  /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
43
54
  contract_address: string;
44
55
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
45
- supports_erc: string;
56
+ supports_erc: string[];
46
57
  /** * The contract logo URL. */
47
58
  logo_url: string;
48
59
  constructor(data: ContractMetadata);
@@ -42,11 +42,11 @@ declare class Transaction {
42
42
  pretty_value_quote: string;
43
43
  /** * The requested chain native gas token metadata. */
44
44
  gas_metadata: ContractMetadata;
45
- gas_offered: string;
45
+ gas_offered: number;
46
46
  /** * The gas spent for this tx. */
47
- gas_spent: string;
47
+ gas_spent: number;
48
48
  /** * The gas price at the time of this tx. */
49
- gas_price: string;
49
+ gas_price: number;
50
50
  /** * The total transaction fees (`gas_price` * `gas_spent`) paid for this tx, denoted in wei. */
51
51
  fees_paid: bigint | null;
52
52
  /** * The gas spent in `quote-currency` denomination. */
@@ -79,7 +79,7 @@ declare class ContractMetadata {
79
79
  /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
80
80
  contract_address: string;
81
81
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
82
- supports_erc: string;
82
+ supports_erc: string[];
83
83
  /** * The contract logo URL. */
84
84
  logo_url: string;
85
85
  constructor(data: ContractMetadata);
@@ -98,7 +98,7 @@ declare class DexReport {
98
98
  protocol_name: string;
99
99
  /** * Stores the contract address of the protocol that facilitated the event. */
100
100
  protocol_address: string;
101
- /** * Stores the URL of the logo for the protocol that facilitated the event. */
101
+ /** * The protocol logo URL. */
102
102
  protocol_logo_url: string;
103
103
  /** * Stores the aggregator responsible for the event. */
104
104
  aggregator_name: string;
@@ -119,7 +119,7 @@ declare class DexReport {
119
119
  lp_token_ticker: string;
120
120
  lp_token_num_decimals: number;
121
121
  lp_token_name: string;
122
- lp_token_value: number;
122
+ lp_token_value: string;
123
123
  exchange_rate_usd: number;
124
124
  /** * Stores the address of token 0 in the specific pair. */
125
125
  token_0_address: string;
@@ -138,13 +138,13 @@ declare class DexReport {
138
138
  /** * Stores the contract name of token 1 in the specific pair. */
139
139
  token_1_name: string;
140
140
  /** * Stores the amount of token 0 used in the transaction. For example, 1 ETH, 100 USDC, 30 UNI, etc. */
141
- token_0_amount: number;
141
+ token_0_amount: string;
142
142
  token_0_quote_rate: number;
143
143
  token_0_usd_quote: number;
144
144
  pretty_token_0_usd_quote: string;
145
145
  token_0_logo_url: string;
146
146
  /** * Stores the amount of token 1 used in the transaction. For example, 1 ETH, 100 USDC, 30 UNI, etc. */
147
- token_1_amount: number;
147
+ token_1_amount: string;
148
148
  token_1_quote_rate: number;
149
149
  token_1_usd_quote: number;
150
150
  pretty_token_1_usd_quote: string;
@@ -164,7 +164,7 @@ declare class NftSalesReport {
164
164
  protocol_contract_address: string;
165
165
  /** * Stores the name of the protocol that facilitated the event. */
166
166
  protocol_name: string;
167
- /** * Stores the URL of the logo for the protocol that facilitated the event. */
167
+ /** * The protocol logo URL. */
168
168
  protocol_logo_url: string;
169
169
  /** * Stores the address of the transaction recipient. */
170
170
  to: string;
@@ -175,7 +175,7 @@ declare class NftSalesReport {
175
175
  /** * Stores the address buying the NFT. */
176
176
  taker: string;
177
177
  /** * Stores the NFTs token ID. All NFTs have a token ID. Within a collection, these token IDs are unique. If the NFT is transferred to another owner, the token id remains the same, as this number is its identifier within a collection. For example, if a collection has 10K NFTs then an NFT in that collection can have a token ID from 1-10K. */
178
- token_id: number;
178
+ token_id: string;
179
179
  /** * Stores the address of the collection. For example, [Bored Ape Yacht Club](https://etherscan.io/token/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d) */
180
180
  collection_address: string;
181
181
  /** * Stores the name of the collection. */
@@ -214,7 +214,7 @@ declare class LendingReport {
214
214
  protocol_name: string;
215
215
  /** * Stores the contract address of the lending protocol that facilitated the event. */
216
216
  protocol_address: string;
217
- /** * Stores the logo URL of the lending protocol that facilitated the event. */
217
+ /** * The protocol logo URL. */
218
218
  protocol_logo_url: string;
219
219
  /** * Lending protocols often have multiple version (e.g. Aave V1, V2 and V3). The `version` field allows you to look at a specific version of the Lending protocol. */
220
220
  version: string;
@@ -305,6 +305,8 @@ declare class LogEvent {
305
305
  sender_address_label: string;
306
306
  /** * The contract logo URL. */
307
307
  sender_logo_url: string;
308
+ /** * The address of the deployed UniswapV2 like factory contract for this DEX. */
309
+ sender_factory_address: string;
308
310
  /** * The log events in raw. */
309
311
  raw_log_data: string;
310
312
  /** * The decoded item. */
@@ -16,15 +16,15 @@ declare class PoolResponse {
16
16
  declare class Pool {
17
17
  /** * The pair address. */
18
18
  exchange: string;
19
- swap_count_24h: string;
19
+ swap_count_24h: number;
20
20
  /** * The total liquidity converted to fiat in `quote-currency`. */
21
- total_liquidity_quote: string;
22
- volume_24h_quote: string;
23
- fee_24h_quote: string;
21
+ total_liquidity_quote: number;
22
+ volume_24h_quote: number;
23
+ fee_24h_quote: number;
24
24
  /** * Total supply of this pool token. */
25
25
  total_supply: bigint | null;
26
26
  /** * The exchange rate for the requested quote currency. */
27
- quote_rate: string;
27
+ quote_rate: number;
28
28
  /** * A prettier version of the total liquidity quote for rendering purposes. */
29
29
  pretty_total_liquidity_quote: string;
30
30
  /** * A prettier version of the volume 24h quote for rendering purposes. */
@@ -39,8 +39,8 @@ declare class Pool {
39
39
  chain_id: string;
40
40
  /** * The name of the DEX, eg: `uniswap_v2`. */
41
41
  dex_name: string;
42
- volume_7d_quote: string;
43
- annualized_fee: string;
42
+ volume_7d_quote: number;
43
+ annualized_fee: number;
44
44
  token_0: Token;
45
45
  token_1: Token;
46
46
  constructor(data: Pool);
@@ -71,14 +71,14 @@ declare class Token {
71
71
  volume_in_24h: string;
72
72
  volume_out_24h: string;
73
73
  /** * The exchange rate for the requested quote currency. */
74
- quote_rate: string;
74
+ quote_rate: number;
75
75
  reserve: string;
76
76
  /** * The contract logo URL. */
77
77
  logo_url: string;
78
78
  /** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
79
79
  contract_ticker_symbol: string;
80
80
  /** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
81
- contract_decimals: string;
81
+ contract_decimals: number;
82
82
  volume_in_7d: string;
83
83
  volume_out_7d: string;
84
84
  constructor(data: Token);
@@ -108,7 +108,7 @@ declare class SupportedDex {
108
108
  /** * The dex logo URL. */
109
109
  logo_url: string;
110
110
  factory_contract_address: string;
111
- router_contract_addresses: string;
111
+ router_contract_addresses: string[];
112
112
  swap_fee: number;
113
113
  constructor(data: SupportedDex);
114
114
  }
@@ -135,21 +135,21 @@ declare class PoolWithTimeseries {
135
135
  exchange: string;
136
136
  /** * A list of explorers for this address. */
137
137
  explorers: Explorer[];
138
- swap_count_24h: string;
138
+ swap_count_24h: number;
139
139
  /** * The total liquidity converted to fiat in `quote-currency`. */
140
- total_liquidity_quote: string;
141
- volume_24h_quote: string;
142
- fee_24h_quote: string;
140
+ total_liquidity_quote: number;
141
+ volume_24h_quote: number;
142
+ fee_24h_quote: number;
143
143
  /** * Total supply of this pool token. */
144
144
  total_supply: bigint | null;
145
145
  /** * The exchange rate for the requested quote currency. */
146
- quote_rate: string;
146
+ quote_rate: number;
147
147
  /** * The requested chain ID eg: `1`. */
148
148
  chain_id: string;
149
149
  /** * The name of the DEX, eg: `uniswap_v2`. */
150
150
  dex_name: string;
151
- volume_7d_quote: string;
152
- annualized_fee: string;
151
+ volume_7d_quote: number;
152
+ annualized_fee: number;
153
153
  /** * A prettier version of the total liquidity quote for rendering purposes. */
154
154
  pretty_total_liquidity_quote: string;
155
155
  /** * A prettier version of the volume 24h quote for rendering purposes. */
@@ -160,8 +160,8 @@ declare class PoolWithTimeseries {
160
160
  pretty_volume_7d_quote: string;
161
161
  token_0: Token;
162
162
  token_1: Token;
163
- token_0_reserve_quote: string;
164
- token_1_reserve_quote: string;
163
+ token_0_reserve_quote: number;
164
+ token_1_reserve_quote: number;
165
165
  volume_timeseries_7d: VolumeTimeseries[];
166
166
  volume_timeseries_30d: VolumeTimeseries[];
167
167
  liquidity_timeseries_7d: LiquidityTimeseries[];
@@ -175,19 +175,19 @@ declare class VolumeTimeseries {
175
175
  dex_name: string;
176
176
  /** * The requested chain ID eg: `1`. */
177
177
  chain_id: string;
178
- dt: string;
178
+ dt: Date;
179
179
  /** * The pair address. */
180
180
  exchange: string;
181
181
  sum_amount0in: string;
182
182
  sum_amount0out: string;
183
183
  sum_amount1in: string;
184
184
  sum_amount1out: string;
185
- volume_quote: string;
185
+ volume_quote: number;
186
186
  /** * A prettier version of the volume quote for rendering purposes. */
187
187
  pretty_volume_quote: string;
188
- token_0_quote_rate: string;
189
- token_1_quote_rate: string;
190
- swap_count_24: string;
188
+ token_0_quote_rate: number;
189
+ token_1_quote_rate: number;
190
+ swap_count_24: number;
191
191
  constructor(data: VolumeTimeseries);
192
192
  }
193
193
  declare class LiquidityTimeseries {
@@ -195,16 +195,16 @@ declare class LiquidityTimeseries {
195
195
  dex_name: string;
196
196
  /** * The requested chain ID eg: `1`. */
197
197
  chain_id: string;
198
- dt: string;
198
+ dt: Date;
199
199
  /** * The pair address. */
200
200
  exchange: string;
201
201
  r0_c: string;
202
202
  r1_c: string;
203
- liquidity_quote: string;
203
+ liquidity_quote: number;
204
204
  /** * A prettier version of the liquidity quote for rendering purposes. */
205
205
  pretty_liquidity_quote: string;
206
- token_0_quote_rate: string;
207
- token_1_quote_rate: string;
206
+ token_0_quote_rate: number;
207
+ token_1_quote_rate: number;
208
208
  constructor(data: LiquidityTimeseries);
209
209
  }
210
210
  declare class PriceTimeseries {
@@ -212,21 +212,21 @@ declare class PriceTimeseries {
212
212
  dex_name: string;
213
213
  /** * The requested chain ID eg: `1`. */
214
214
  chain_id: string;
215
- dt: string;
215
+ dt: Date;
216
216
  /** * The pair address. */
217
217
  exchange: string;
218
- price_of_token0_in_token1: string;
218
+ price_of_token0_in_token1: number;
219
219
  /** * A prettier version of the price token0 for rendering purposes. */
220
220
  pretty_price_of_token0_in_token1: string;
221
221
  price_of_token0_in_token1_description: string;
222
- price_of_token1_in_token0: string;
222
+ price_of_token1_in_token0: number;
223
223
  /** * A prettier version of the price token1 for rendering purposes. */
224
224
  pretty_price_of_token1_in_token0: string;
225
225
  price_of_token1_in_token0_description: string;
226
226
  /** * The requested quote currency eg: `USD`. */
227
227
  quote_currency: string;
228
- price_of_token0_in_quote_currency: string;
229
- price_of_token1_in_quote_currency: string;
228
+ price_of_token0_in_quote_currency: number;
229
+ price_of_token1_in_quote_currency: number;
230
230
  constructor(data: PriceTimeseries);
231
231
  }
232
232
  declare class PoolsDexDataResponse {
@@ -383,8 +383,8 @@ declare class TokenV2Volume {
383
383
  contract_address: string;
384
384
  /** * The string returned by the `name()` method. */
385
385
  contract_name: string;
386
- total_liquidity: number;
387
- total_volume_24h: number;
386
+ total_liquidity: string;
387
+ total_volume_24h: string;
388
388
  /** * The contract logo URL. */
389
389
  logo_url: string;
390
390
  /** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
@@ -439,9 +439,9 @@ declare class TokenV2VolumeWithChartData {
439
439
  /** * A list of explorers for this address. */
440
440
  explorers: Explorer[];
441
441
  /** * The total liquidity unscaled value. */
442
- total_liquidity: number;
442
+ total_liquidity: string;
443
443
  /** * The total volume 24h unscaled value. */
444
- total_volume_24h: number;
444
+ total_volume_24h: string;
445
445
  /** * The contract logo URL. */
446
446
  logo_url: string;
447
447
  /** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
@@ -482,7 +482,7 @@ declare class VolumeTokenTimeseries {
482
482
  /** * The requested chain ID eg: `1`. */
483
483
  chain_id: string;
484
484
  /** * The current date. */
485
- dt: string;
485
+ dt: Date;
486
486
  /** * The total volume unscaled for this day. */
487
487
  total_volume: string;
488
488
  /** * The volume in `quote-currency` denomination. */
@@ -497,7 +497,7 @@ declare class LiquidityTokenTimeseries {
497
497
  /** * The requested chain ID eg: `1`. */
498
498
  chain_id: string;
499
499
  /** * The current date. */
500
- dt: string;
500
+ dt: Date;
501
501
  /** * The total liquidity unscaled up to this day. */
502
502
  total_liquidity: string;
503
503
  /** * The liquidity in `quote-currency` denomination. */
@@ -512,7 +512,7 @@ declare class PriceTokenTimeseries {
512
512
  /** * The requested chain ID eg: `1`. */
513
513
  chain_id: string;
514
514
  /** * The current date. */
515
- dt: string;
515
+ dt: Date;
516
516
  /** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
517
517
  quote_currency: string;
518
518
  /** * The exchange rate for the requested quote currency. */
@@ -566,12 +566,12 @@ declare class ExchangeTransaction {
566
566
  address: string;
567
567
  /** * A list of explorers for this transaction. */
568
568
  explorers: Explorer[];
569
- amount_0: number;
570
- amount_1: number;
571
- amount_0_in: number;
572
- amount_0_out: number;
573
- amount_1_in: number;
574
- amount_1_out: number;
569
+ amount_0: string;
570
+ amount_1: string;
571
+ amount_0_in: string;
572
+ amount_0_out: string;
573
+ amount_1_in: string;
574
+ amount_1_out: string;
575
575
  to_address: string;
576
576
  from_address: string;
577
577
  sender_address: string;
@@ -587,11 +587,11 @@ declare class ExchangeTransaction {
587
587
  /** * The requested chain native gas token metadata. */
588
588
  gas_metadata: ContractMetadata;
589
589
  /** * The amount of gas supplied for this tx. */
590
- gas_offered: string;
590
+ gas_offered: number;
591
591
  /** * The gas spent for this tx. */
592
- gas_spent: string;
592
+ gas_spent: number;
593
593
  /** * The gas price at the time of this tx. */
594
- gas_price: string;
594
+ gas_price: number;
595
595
  /** * The total transaction fees (`gas_price` * `gas_spent`) paid for this tx, denoted in wei. */
596
596
  fees_paid: bigint | null;
597
597
  /** * The gas spent in `quote-currency` denomination. */
@@ -618,7 +618,7 @@ declare class ContractMetadata {
618
618
  /** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
619
619
  contract_address: string;
620
620
  /** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
621
- supports_erc: string;
621
+ supports_erc: string[];
622
622
  /** * The contract logo URL. */
623
623
  logo_url: string;
624
624
  constructor(data: ContractMetadata);