@covalenthq/client-sdk 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/cjs/index.js +172 -257
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/services/BalanceService.d.ts +2 -2
- package/dist/cjs/src/services/TransactionService.d.ts +41 -36
- package/dist/cjs/src/utils/types/BalanceService.types.d.ts +1 -1
- package/dist/cjs/src/utils/types/Generic.types.d.ts +27 -135
- package/dist/cjs/src/utils/types/TransactionService.types.d.ts +98 -175
- package/dist/esm/index.js +172 -257
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/services/BalanceService.d.ts +2 -2
- package/dist/esm/src/services/TransactionService.d.ts +41 -36
- package/dist/esm/src/utils/types/BalanceService.types.d.ts +1 -1
- package/dist/esm/src/utils/types/Generic.types.d.ts +27 -135
- package/dist/esm/src/utils/types/TransactionService.types.d.ts +98 -175
- package/package.json +4 -3
|
@@ -50,7 +50,7 @@ export declare class BalanceService {
|
|
|
50
50
|
* - `pageNumber`: 0-indexed page number to begin pagination.
|
|
51
51
|
*
|
|
52
52
|
*/
|
|
53
|
-
getErc20TransfersForWalletAddress(chainName: Chain, walletAddress: string, queryParamOpts
|
|
53
|
+
getErc20TransfersForWalletAddress(chainName: Chain, walletAddress: string, queryParamOpts: GetErc20TransfersForWalletAddressQueryParamOpts): AsyncIterable<GoldRushResponse<Erc20TransfersResponse>>;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* Commonly used to render the transfer-in and transfer-out of a token along with historical prices from an address.
|
|
@@ -66,7 +66,7 @@ export declare class BalanceService {
|
|
|
66
66
|
* - `pageNumber`: 0-indexed page number to begin pagination.
|
|
67
67
|
*
|
|
68
68
|
*/
|
|
69
|
-
getErc20TransfersForWalletAddressByPage(chainName: Chain, walletAddress: string, queryParamOpts
|
|
69
|
+
getErc20TransfersForWalletAddressByPage(chainName: Chain, walletAddress: string, queryParamOpts: GetErc20TransfersForWalletAddressQueryParamOpts): Promise<GoldRushResponse<Erc20TransfersResponse>>;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* Commonly used to get a list of all the token holders for a specified ERC20 or ERC721 token. Returns historic token holders when block-height is set (defaults to `latest`). Useful for building pie charts of token holders.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Execution } from "../utils/functions/execution";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { Chain, GoldRushResponse } from "../utils/types/Generic.types";
|
|
3
|
+
import type { EarliestTransactionsForAddressResponse, GetAllTransactionsForAddressQueryParamOpts, GetEarliestTransactionsForAddressQueryParamOpts, getPaginatedTransactionsForAddressQueryParamOpts, GetTimeBucketTransactionsForAddressQueryParamOpts, GetTransactionQueryParamOpts, getTransactionsForBlockByPageQueryParamOpts, GetTransactionSummaryQueryParamOpts, RecentTransactionsResponse, TransactionResponse, TransactionsBlockResponse, TransactionsForBlockResponse, TransactionsResponse, TransactionsSummaryResponse, TransactionsTimeBucketResponse } from "../utils/types/TransactionService.types";
|
|
4
4
|
/**
|
|
5
5
|
* Transactions API
|
|
6
6
|
*
|
|
@@ -10,83 +10,87 @@ export declare class TransactionService {
|
|
|
10
10
|
constructor(execution: Execution);
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
|
-
* Commonly used to fetch and render a single transaction including its decoded log events.
|
|
13
|
+
* Commonly used to fetch and render a single transaction including its decoded log events.
|
|
14
14
|
*
|
|
15
15
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
16
16
|
* @param {string} txHash - The transaction hash.
|
|
17
17
|
* @param {GetTransactionQueryParamOpts} queryParamOpts
|
|
18
18
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
19
19
|
* - `noLogs`: Omit log events.
|
|
20
|
-
* - `
|
|
20
|
+
* - `withInternal`: Include internal transfers/transactions.
|
|
21
|
+
* - `withState`: Include all transaction state changes with before and after values.
|
|
22
|
+
* - `withInputData`: Include the transaction's input data such as the Method ID.
|
|
21
23
|
*
|
|
22
24
|
*/
|
|
23
25
|
getTransaction(chainName: Chain, txHash: string, queryParamOpts?: GetTransactionQueryParamOpts): Promise<GoldRushResponse<TransactionResponse>>;
|
|
24
26
|
/**
|
|
25
27
|
*
|
|
26
|
-
* Commonly used to fetch and
|
|
28
|
+
* Commonly used to fetch the earliest and latest transactions, and the transaction count for a wallet. Calculate the age of the wallet and the time it has been idle and quickly gain insights into their engagement with web3.
|
|
27
29
|
*
|
|
28
30
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
29
31
|
* @param {string} walletAddress - The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
30
|
-
* @param {
|
|
32
|
+
* @param {GetTransactionSummaryQueryParamOpts} queryParamOpts
|
|
31
33
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
32
|
-
* - `
|
|
33
|
-
* - `blockSignedAtAsc`: Sort the transactions in ascending chronological order. By default, it's set to `false` and returns transactions in descending chronological order.
|
|
34
|
-
* - `withSafe`: Include safe details.
|
|
34
|
+
* - `withGas`: Include gas summary details. Additional charge of 1 credit when true. Response times may be impacted for wallets with millions of transactions.
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
getTransactionSummary(chainName: Chain, walletAddress: string, queryParamOpts?: GetTransactionSummaryQueryParamOpts): Promise<GoldRushResponse<TransactionsSummaryResponse>>;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
|
-
* Commonly used to fetch and render the
|
|
40
|
+
* Commonly used to fetch and render the earliest transactions involving an address. Frequently seen in wallet applications.
|
|
41
41
|
*
|
|
42
42
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
43
43
|
* @param {string} walletAddress - The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
44
|
-
* @param {
|
|
44
|
+
* @param {GetEarliestTransactionsForAddressQueryParamOpts} queryParamOpts
|
|
45
45
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
46
46
|
* - `noLogs`: Omit log events.
|
|
47
|
-
* - `blockSignedAtAsc`: Sort the transactions in ascending chronological order. By default, it's set to `false` and returns transactions in descending chronological order.
|
|
48
|
-
* - `withSafe`: Include safe details.
|
|
49
47
|
*
|
|
50
48
|
*/
|
|
51
|
-
|
|
49
|
+
getEarliestTransactionsForAddress(chainName: Chain, walletAddress: string, queryParamOpts?: GetEarliestTransactionsForAddressQueryParamOpts): Promise<GoldRushResponse<EarliestTransactionsForAddressResponse>>;
|
|
52
50
|
/**
|
|
53
51
|
*
|
|
54
|
-
* Commonly used to fetch
|
|
52
|
+
* Commonly used to fetch and render the most recent transactions involving an address. Frequently seen in wallet applications.
|
|
55
53
|
*
|
|
56
54
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
57
|
-
* @param {
|
|
58
|
-
* @param {
|
|
55
|
+
* @param {string} walletAddress - The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
56
|
+
* @param {GetAllTransactionsForAddressQueryParamOpts} queryParamOpts
|
|
59
57
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
60
58
|
* - `noLogs`: Omit log events.
|
|
61
|
-
* - `
|
|
59
|
+
* - `blockSignedAtAsc`: Sort the transactions in ascending chronological order. By default, it's set to `false` and returns transactions in descending chronological order.
|
|
60
|
+
* - `withInternal`: Include internal transfers/transactions.
|
|
61
|
+
* - `withState`: Include all transaction state changes with before and after values.
|
|
62
|
+
* - `withInputData`: Include the transaction's input data such as the Method ID.
|
|
62
63
|
*
|
|
63
64
|
*/
|
|
64
|
-
|
|
65
|
+
getAllTransactionsForAddress(chainName: Chain, walletAddress: string, queryParamOpts?: GetAllTransactionsForAddressQueryParamOpts): AsyncIterable<GoldRushResponse<RecentTransactionsResponse>>;
|
|
65
66
|
/**
|
|
66
67
|
*
|
|
67
|
-
* Commonly used to fetch
|
|
68
|
+
* Commonly used to fetch and render the most recent transactions involving an address. Frequently seen in wallet applications.
|
|
68
69
|
*
|
|
69
70
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
70
71
|
* @param {string} walletAddress - The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
71
|
-
* @param {
|
|
72
|
+
* @param {GetAllTransactionsForAddressQueryParamOpts} queryParamOpts
|
|
72
73
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
73
|
-
* - `
|
|
74
|
+
* - `noLogs`: Omit log events.
|
|
75
|
+
* - `blockSignedAtAsc`: Sort the transactions in ascending chronological order. By default, it's set to `false` and returns transactions in descending chronological order.
|
|
76
|
+
* - `withInternal`: Include internal transfers/transactions.
|
|
77
|
+
* - `withState`: Include all transaction state changes with before and after values.
|
|
78
|
+
* - `withInputData`: Include the transaction's input data such as the Method ID.
|
|
74
79
|
*
|
|
75
80
|
*/
|
|
76
|
-
|
|
81
|
+
getAllTransactionsForAddressByPage(chainName: Chain, walletAddress: string, queryParamOpts?: GetAllTransactionsForAddressQueryParamOpts): Promise<GoldRushResponse<RecentTransactionsResponse>>;
|
|
77
82
|
/**
|
|
78
83
|
*
|
|
79
84
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
80
85
|
* @param {string} walletAddress - The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
81
86
|
* @param {number} page - The requested page, 0-indexed.
|
|
82
|
-
* @param {
|
|
87
|
+
* @param {getPaginatedTransactionsForAddressQueryParamOpts} queryParamOpts
|
|
83
88
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
84
89
|
* - `noLogs`: Omit log events.
|
|
85
90
|
* - `blockSignedAtAsc`: Sort the transactions in ascending chronological order. By default, it's set to `false` and returns transactions in descending chronological order.
|
|
86
|
-
* - `withSafe`: Include safe details.
|
|
87
91
|
*
|
|
88
92
|
*/
|
|
89
|
-
|
|
93
|
+
getPaginatedTransactionsForAddress(chainName: Chain, walletAddress: string, page: number, queryParamOpts?: getPaginatedTransactionsForAddressQueryParamOpts): Promise<GoldRushResponse<TransactionsResponse>>;
|
|
90
94
|
/**
|
|
91
95
|
*
|
|
92
96
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
@@ -95,7 +99,6 @@ export declare class TransactionService {
|
|
|
95
99
|
* @param {GetTimeBucketTransactionsForAddressQueryParamOpts} queryParamOpts
|
|
96
100
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
97
101
|
* - `noLogs`: Omit log events.
|
|
98
|
-
* - `withSafe`: Include safe details.
|
|
99
102
|
*
|
|
100
103
|
*/
|
|
101
104
|
getTimeBucketTransactionsForAddress(chainName: Chain, walletAddress: string, timeBucket: number, queryParamOpts?: GetTimeBucketTransactionsForAddressQueryParamOpts): Promise<GoldRushResponse<TransactionsTimeBucketResponse>>;
|
|
@@ -104,26 +107,28 @@ export declare class TransactionService {
|
|
|
104
107
|
* Commonly used to fetch all transactions including their decoded log events in a block and further flag interesting wallets or transactions.
|
|
105
108
|
*
|
|
106
109
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
107
|
-
* @param {
|
|
108
|
-
* @param {number} page - The requested 0-indexed
|
|
109
|
-
* @param {
|
|
110
|
+
* @param {number} blockHeight - The requested block height.
|
|
111
|
+
* @param {number} page - The requested page, 0-indexed.
|
|
112
|
+
* @param {getTransactionsForBlockByPageQueryParamOpts} queryParamOpts
|
|
110
113
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
111
114
|
* - `noLogs`: Omit log events.
|
|
112
|
-
* - `withSafe`: Include safe details.
|
|
113
115
|
*
|
|
114
116
|
*/
|
|
115
|
-
|
|
117
|
+
getTransactionsForBlockByPage(chainName: Chain, blockHeight: number | string | "latest", page: number, queryParamOpts?: getTransactionsForBlockByPageQueryParamOpts): Promise<GoldRushResponse<TransactionsBlockResponse>>;
|
|
116
118
|
/**
|
|
117
119
|
*
|
|
118
120
|
* Commonly used to fetch all transactions including their decoded log events in a block and further flag interesting wallets or transactions.
|
|
119
121
|
*
|
|
120
122
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
121
123
|
* @param {string} blockHash - The requested block hash.
|
|
122
|
-
* @param {
|
|
124
|
+
* @param {getTransactionsForBlockByPageQueryParamOpts} queryParamOpts
|
|
123
125
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
124
126
|
* - `noLogs`: Omit log events.
|
|
125
|
-
* - `withSafe`: Include safe details.
|
|
126
127
|
*
|
|
127
128
|
*/
|
|
128
|
-
|
|
129
|
+
getTransactionsForBlock(chainName: Chain, blockHash: string, queryParamOpts?: getTransactionsForBlockByPageQueryParamOpts): Promise<GoldRushResponse<TransactionsForBlockResponse>>;
|
|
130
|
+
/**
|
|
131
|
+
* @deprecated This method has been deprecated and will be removed in future releases. Use `getPaginatedTransactionsForAddress` instead.
|
|
132
|
+
*/
|
|
133
|
+
getTransactionsForAddressV3(chainName: Chain, walletAddress: string, page: number, queryParamOpts?: getPaginatedTransactionsForAddressQueryParamOpts): Promise<GoldRushResponse<TransactionsResponse>>;
|
|
129
134
|
}
|
|
@@ -398,7 +398,7 @@ export type GetErc20TransfersForWalletAddressQueryParamOpts = Nullable<{
|
|
|
398
398
|
/** * The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`. */
|
|
399
399
|
quoteCurrency?: Quote;
|
|
400
400
|
/** * The requested contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically. */
|
|
401
|
-
contractAddress
|
|
401
|
+
contractAddress: string;
|
|
402
402
|
/** * The block height to start from, defaults to `0`. */
|
|
403
403
|
startingBlock?: number;
|
|
404
404
|
/** * The block height to end at, defaults to current block height. */
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export declare enum ChainName {
|
|
2
2
|
ETH_MAINNET = "eth-mainnet",
|
|
3
3
|
ETH_SEPOLIA = "eth-sepolia",
|
|
4
|
-
ETH_GOERLI = "eth-goerli",
|
|
5
4
|
ETH_HOLESKY = "eth-holesky",
|
|
6
5
|
MATIC_MAINNET = "matic-mainnet",
|
|
7
|
-
MATIC_MUMBAI = "matic-mumbai",
|
|
8
6
|
AVALANCHE_MAINNET = "avalanche-mainnet",
|
|
9
7
|
AVALANCHE_TESTNET = "avalanche-testnet",
|
|
10
8
|
BSC_MAINNET = "bsc-mainnet",
|
|
@@ -21,15 +19,11 @@ export declare enum ChainName {
|
|
|
21
19
|
FANTOM_TESTNET = "fantom-testnet",
|
|
22
20
|
PALM_MAINNET = "palm-mainnet",
|
|
23
21
|
PALM_TESTNET = "palm-testnet",
|
|
24
|
-
BTC_MAINNET = "btc-mainnet",
|
|
25
22
|
SOLANA_MAINNET = "solana-mainnet",
|
|
23
|
+
BTC_MAINNET = "btc-mainnet",
|
|
26
24
|
AXIE_MAINNET = "axie-mainnet",
|
|
27
25
|
OPTIMISM_MAINNET = "optimism-mainnet",
|
|
28
26
|
OPTIMISM_SEPOLIA = "optimism-sepolia",
|
|
29
|
-
EVMOS_MAINNET = "evmos-mainnet",
|
|
30
|
-
EVMOS_TESTNET = "evmos-testnet",
|
|
31
|
-
HARMONY_MAINNET = "harmony-mainnet",
|
|
32
|
-
HARMONY_TESTNET = "harmony-testnet",
|
|
33
27
|
CRONOS_MAINNET = "cronos-mainnet",
|
|
34
28
|
CRONOS_TESTNET = "cronos-testnet",
|
|
35
29
|
CRONOS_ZKEVM_TESTNET = "cronos-zkevm-testnet",
|
|
@@ -44,53 +38,23 @@ export declare enum ChainName {
|
|
|
44
38
|
BOBA_BNB_TESTNET = "boba-bnb-testnet",
|
|
45
39
|
SCROLL_SEPOLIA_TESTNET = "scroll-sepolia-testnet",
|
|
46
40
|
METIS_MAINNET = "metis-mainnet",
|
|
47
|
-
METIS_STARDUST = "metis-stardust",
|
|
48
41
|
AVALANCHE_DEXALOT_MAINNET = "avalanche-dexalot-mainnet",
|
|
49
42
|
AVALANCHE_DEXALOT_TESTNET = "avalanche-dexalot-testnet",
|
|
50
43
|
AVALANCHE_SHRAPNEL_MAINNET = "avalanche-shrapnel-mainnet",
|
|
51
44
|
AVALANCHE_NUMBERS = "avalanche-numbers",
|
|
52
|
-
AVALANCHE_DOS = "avalanche-dos",
|
|
53
|
-
AVALANCHE_XPLUS = "avalanche-xplus",
|
|
54
45
|
AVALANCHE_XANACHAIN = "avalanche-xanachain",
|
|
55
46
|
AVALANCHE_STEP_NETWORK = "avalanche-step-network",
|
|
56
47
|
AVALANCHE_SHRAPNEL_TESTNET = "avalanche-shrapnel-testnet",
|
|
57
48
|
AVALANCHE_BEAM_TESTNET = "avalanche-beam-testnet",
|
|
58
49
|
AVALANCHE_BLITZ_TESTNET = "avalanche-blitz-testnet",
|
|
59
|
-
AVALANCHE_MINTARA_TESTNET = "avalanche-mintara-testnet",
|
|
60
|
-
AVALANCHE_GREEN_DOT_TESTNET = "avalanche-green-dot-testnet",
|
|
61
|
-
AVALANCHE_PULSAR_TESTNET = "avalanche-pulsar-testnet",
|
|
62
50
|
AVALANCHE_UPTN = "avalanche-uptn",
|
|
63
|
-
AVALANCHE_AVACLOUD_TESTNET = "avalanche-avacloud-testnet",
|
|
64
51
|
AVALANCHE_BEAM_MAINNET = "avalanche-beam-mainnet",
|
|
65
|
-
AVALANCHE_BULLETIN_TESTNET = "avalanche-bulletin-testnet",
|
|
66
|
-
AVALANCHE_CONDUIT_TESTNET = "avalanche-conduit-testnet",
|
|
67
|
-
AVALANCHE_HERO_TESTNET = "avalanche-hero-testnet",
|
|
68
|
-
AVALANCHE_HUBBLE_EXCHANGE_TESTNET = "avalanche-hubble-exchange-testnet",
|
|
69
|
-
AVALANCHE_KIWI_TESTNET = "avalanche-kiwi-testnet",
|
|
70
|
-
AVALANCHE_MIHO_TESTNET = "avalanche-miho-testnet",
|
|
71
|
-
AVALANCHE_MONDRIAN_TESTNET = "avalanche-mondrian-testnet",
|
|
72
|
-
AVALANCHE_NMAC_TESTNET = "avalanche-nmac-testnet",
|
|
73
|
-
AVALANCHE_ORDERLY_TESTNET = "avalanche-orderly-testnet",
|
|
74
|
-
AVALANCHE_THIRDWEB_TESTNET = "avalanche-thirdweb-testnet",
|
|
75
|
-
AVALANCHE_WAGMI_TESTNET = "avalanche-wagmi-testnet",
|
|
76
|
-
AVALANCHE_PLAYA3ULL_TESTNET = "avalanche-playa3ull-testnet",
|
|
77
52
|
AVALANCHE_MIRAI_TESTNET = "avalanche-mirai-testnet",
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
AVALANCHE_LT5_TESTNET = "avalanche-lt5-testnet",
|
|
81
|
-
AVALANCHE_HUBBLE_EXCHANGE_MAINNET = "avalanche-hubble-exchange-mainnet",
|
|
82
|
-
METER_MAINNET = "meter-mainnet",
|
|
83
|
-
METER_TESTNET = "meter-testnet",
|
|
84
|
-
MILKOMEDA_A1_MAINNET = "milkomeda-a1-mainnet",
|
|
85
|
-
MILKOMEDA_C1_MAINNET = "milkomeda-c1-mainnet",
|
|
86
|
-
MILKOMEDA_C1_DEVNET = "milkomeda-c1-devnet",
|
|
53
|
+
BERACHAIN_MAINNET = "berachain-mainnet",
|
|
54
|
+
UNICHAIN_MAINNET = "unichain-mainnet",
|
|
87
55
|
CANTO_MAINNET = "canto-mainnet",
|
|
88
56
|
FLARENETWORKS_FLARE_MAINNET = "flarenetworks-flare-mainnet",
|
|
89
57
|
FLARENETWORKS_FLARE_TESTNET = "flarenetworks-flare-testnet",
|
|
90
|
-
FLARENETWORKS_CANARY_MAINNET = "flarenetworks-canary-mainnet",
|
|
91
|
-
FLARENETWORKS_CANARY_TESTNET = "flarenetworks-canary-testnet",
|
|
92
|
-
KCC_MAINNET = "kcc-mainnet",
|
|
93
|
-
KCC_TESTNET = "kcc-testnet",
|
|
94
58
|
POLYGON_ZKEVM_MAINNET = "polygon-zkevm-mainnet",
|
|
95
59
|
LINEA_MAINNET = "linea-mainnet",
|
|
96
60
|
LINEA_GOERLI_TESTNET = "linea-goerli-testnet",
|
|
@@ -98,81 +62,61 @@ export declare enum ChainName {
|
|
|
98
62
|
POLYGON_ZKEVM_TESTNET = "polygon-zkevm-testnet",
|
|
99
63
|
POLYGON_AMOY_TESTNET = "polygon-amoy-testnet",
|
|
100
64
|
MANTLE_MAINNET = "mantle-mainnet",
|
|
101
|
-
POLYGON_ZKEVM_CARDONA_TESTNET = "polygon-zkevm-cardona-testnet",
|
|
102
65
|
MANTLE_SEPOLIA_TESTNET = "mantle-sepolia-testnet",
|
|
66
|
+
POLYGON_ZKEVM_CARDONA_TESTNET = "polygon-zkevm-cardona-testnet",
|
|
103
67
|
BASE_MAINNET = "base-mainnet",
|
|
104
|
-
BASE_TESTNET = "base-testnet",
|
|
105
68
|
BASE_SEPOLIA_TESTNET = "base-sepolia-testnet",
|
|
106
|
-
OASYS_MAINNET = "oasys-mainnet",
|
|
107
|
-
OASYS_TESTNET = "oasys-testnet",
|
|
108
69
|
SX_MAINNET = "sx-mainnet",
|
|
109
|
-
LUMOZ_PUBLIC_ZKSYNC_V2 = "lumoz-public-zksync-v2",
|
|
110
|
-
LUMOZ_STARK_SPORT = "lumoz-stark-sport",
|
|
111
70
|
OASIS_SAPPHIRE_MAINNET = "oasis-sapphire-mainnet",
|
|
112
|
-
OASIS_SAPPHIRE_TESTNET = "oasis-sapphire-testnet",
|
|
113
|
-
XAI_MAINNET = "xai-mainnet",
|
|
114
71
|
SYNDR_TESTNET = "syndr-testnet",
|
|
72
|
+
OASIS_SAPPHIRE_TESTNET = "oasis-sapphire-testnet",
|
|
115
73
|
CELO_MAINNET = "celo-mainnet",
|
|
116
74
|
X1_MAINNET = "x1-mainnet",
|
|
117
|
-
CROSSFI_EVM_TESTNET = "crossfi-evm-testnet",
|
|
118
75
|
HORIZEN_EON_MAINNET = "horizen-eon-mainnet",
|
|
119
76
|
HORIZEN_GOBI_TESTNET = "horizen-gobi-testnet",
|
|
120
77
|
FRAXTAL_MAINNET = "fraxtal-mainnet",
|
|
121
78
|
APECHAIN_TESTNET = "apechain-testnet",
|
|
122
|
-
LISK_MAINNET = "lisk-mainnet",
|
|
123
79
|
BERACHAIN_TESTNET = "berachain-testnet",
|
|
124
80
|
REDSTONE_MAINNET = "redstone-mainnet",
|
|
125
81
|
SEI_MAINNET = "sei-mainnet",
|
|
82
|
+
APECHAIN_MAINNET = "apechain-mainnet",
|
|
83
|
+
UNICHAIN_SEPOLIA_TESTNET = "unichain-sepolia-testnet",
|
|
84
|
+
WORLD_MAINNET = "world-mainnet",
|
|
85
|
+
WORLD_SEPOLIA_TESTNET = "world-sepolia-testnet",
|
|
86
|
+
LENS_SEPOLIA_TESTNET = "lens-sepolia-testnet",
|
|
87
|
+
INK_SEPOLIA_TESTNET = "ink-sepolia-testnet",
|
|
88
|
+
INK_MAINNET = "ink-mainnet",
|
|
126
89
|
AVALANCHE_MELD_TESTNET = "avalanche-meld-testnet",
|
|
127
90
|
AVALANCHE_MELD_MAINNET = "avalanche-meld-mainnet",
|
|
128
91
|
GUNZILLA_TESTNET = "gunzilla-testnet",
|
|
129
|
-
ULTRON_MAINNET = "ultron-mainnet",
|
|
130
|
-
ULTRON_TESTNET = "ultron-testnet",
|
|
131
92
|
ZORA_MAINNET = "zora-mainnet",
|
|
132
93
|
ZORA_SEPOLIA_TESTNET = "zora-sepolia-testnet",
|
|
133
|
-
LISK_SEPOLIA_TESTNET = "lisk-sepolia-testnet",
|
|
134
|
-
OPSIDE_READON_CONTENT_TESTNET = "opside-readon-content-testnet",
|
|
135
94
|
ZKSYNC_MAINNET = "zksync-mainnet",
|
|
136
95
|
ZKSYNC_SEPOLIA_TESTNET = "zksync-sepolia-testnet",
|
|
137
|
-
BNB_ANTIMATTER_TESTNET = "bnb-antimatter-testnet",
|
|
138
|
-
BNB_META_APES_MAINNET = "bnb-meta-apes-mainnet",
|
|
139
|
-
BNB_FNCY_MAINNET = "bnb-fncy-mainnet",
|
|
140
96
|
BNB_OPBNB_TESTNET = "bnb-opbnb-testnet",
|
|
141
|
-
BNB_FNCY_TESTNET = "bnb-fncy-testnet",
|
|
142
97
|
BNB_OPBNB_MAINNET = "bnb-opbnb-mainnet",
|
|
143
98
|
ZETACHAIN_TESTNET = "zetachain-testnet",
|
|
144
99
|
ZETACHAIN_MAINNET = "zetachain-mainnet",
|
|
145
|
-
MODE_TESTNET = "mode-testnet",
|
|
146
|
-
MODE_MAINNET = "mode-mainnet",
|
|
147
100
|
KINTO_TESTNET = "kinto-testnet",
|
|
148
|
-
LOOT_MAINNET = "loot-mainnet",
|
|
149
|
-
PGN_MAINNET = "pgn-mainnet",
|
|
150
|
-
PGN_TESTNET = "pgn-testnet",
|
|
151
101
|
MANTA_SEPOLIA_TESTNET = "manta-sepolia-testnet",
|
|
152
102
|
ROLLUX_MAINNET = "rollux-mainnet",
|
|
153
|
-
ROLLUX_TESTNET = "rollux-testnet",
|
|
154
103
|
GNOSIS_MAINNET = "gnosis-mainnet",
|
|
155
104
|
GNOSIS_TESTNET = "gnosis-testnet",
|
|
156
|
-
TELOS_MAINNET = "telos-mainnet",
|
|
157
|
-
TELOS_TESTNET = "telos-testnet",
|
|
158
105
|
VICTION_MAINNET = "viction-mainnet",
|
|
159
106
|
VICTION_TESTNET = "viction-testnet",
|
|
160
107
|
TAIKO_HEKLA_TESTNET = "taiko-hekla-testnet",
|
|
161
108
|
TAIKO_MAINNET = "taiko-mainnet",
|
|
162
109
|
MERLIN_MAINNET = "merlin-mainnet",
|
|
163
110
|
MERLIN_TESTNET = "merlin-testnet",
|
|
164
|
-
BLAST_MAINNET = "blast-mainnet",
|
|
165
111
|
MOVEMENT_MEVM_TESTNET = "movement-mevm-testnet",
|
|
166
|
-
|
|
167
|
-
|
|
112
|
+
BLAST_MAINNET = "blast-mainnet",
|
|
113
|
+
SCROLL_MAINNET = "scroll-mainnet"
|
|
168
114
|
}
|
|
169
115
|
export declare enum ChainID {
|
|
170
116
|
ETH_MAINNET = 1,
|
|
171
117
|
ETH_SEPOLIA = 11155111,
|
|
172
|
-
ETH_GOERLI = 5,
|
|
173
118
|
ETH_HOLESKY = 17000,
|
|
174
119
|
MATIC_MAINNET = 137,
|
|
175
|
-
MATIC_MUMBAI = 80001,
|
|
176
120
|
AVALANCHE_MAINNET = 43114,
|
|
177
121
|
AVALANCHE_TESTNET = 43113,
|
|
178
122
|
BSC_MAINNET = 56,
|
|
@@ -194,10 +138,6 @@ export declare enum ChainID {
|
|
|
194
138
|
AXIE_MAINNET = 2020,
|
|
195
139
|
OPTIMISM_MAINNET = 10,
|
|
196
140
|
OPTIMISM_SEPOLIA = 11155420,
|
|
197
|
-
EVMOS_MAINNET = 9001,
|
|
198
|
-
EVMOS_TESTNET = 9000,
|
|
199
|
-
HARMONY_MAINNET = 1666600000,
|
|
200
|
-
HARMONY_TESTNET = 1666700000,
|
|
201
141
|
CRONOS_MAINNET = 25,
|
|
202
142
|
CRONOS_TESTNET = 338,
|
|
203
143
|
CRONOS_ZKEVM_TESTNET = 282,
|
|
@@ -212,53 +152,23 @@ export declare enum ChainID {
|
|
|
212
152
|
BOBA_BNB_TESTNET = 9728,
|
|
213
153
|
SCROLL_SEPOLIA_TESTNET = 534351,
|
|
214
154
|
METIS_MAINNET = 1088,
|
|
215
|
-
METIS_STARDUST = 588,
|
|
216
155
|
AVALANCHE_DEXALOT_MAINNET = 432204,
|
|
217
156
|
AVALANCHE_DEXALOT_TESTNET = 432201,
|
|
218
157
|
AVALANCHE_SHRAPNEL_MAINNET = 2044,
|
|
219
158
|
AVALANCHE_NUMBERS = 10507,
|
|
220
|
-
AVALANCHE_DOS = 7979,
|
|
221
|
-
AVALANCHE_XPLUS = 1228,
|
|
222
159
|
AVALANCHE_XANACHAIN = 8888,
|
|
223
160
|
AVALANCHE_STEP_NETWORK = 1234,
|
|
224
161
|
AVALANCHE_SHRAPNEL_TESTNET = 2038,
|
|
225
162
|
AVALANCHE_BEAM_TESTNET = 13337,
|
|
226
163
|
AVALANCHE_BLITZ_TESTNET = 1343,
|
|
227
|
-
AVALANCHE_MINTARA_TESTNET = 1079,
|
|
228
|
-
AVALANCHE_GREEN_DOT_TESTNET = 6765897100,
|
|
229
|
-
AVALANCHE_PULSAR_TESTNET = 431234,
|
|
230
164
|
AVALANCHE_UPTN = 6119,
|
|
231
|
-
AVALANCHE_AVACLOUD_TESTNET = 152703,
|
|
232
165
|
AVALANCHE_BEAM_MAINNET = 4337,
|
|
233
|
-
AVALANCHE_BULLETIN_TESTNET = 78431,
|
|
234
|
-
AVALANCHE_CONDUIT_TESTNET = 78432,
|
|
235
|
-
AVALANCHE_HERO_TESTNET = 17772,
|
|
236
|
-
AVALANCHE_HUBBLE_EXCHANGE_TESTNET = 321123,
|
|
237
|
-
AVALANCHE_KIWI_TESTNET = 2037,
|
|
238
|
-
AVALANCHE_MIHO_TESTNET = 360163,
|
|
239
|
-
AVALANCHE_MONDRIAN_TESTNET = 179188,
|
|
240
|
-
AVALANCHE_NMAC_TESTNET = 7777,
|
|
241
|
-
AVALANCHE_ORDERLY_TESTNET = 986532,
|
|
242
|
-
AVALANCHE_THIRDWEB_TESTNET = 894538,
|
|
243
|
-
AVALANCHE_WAGMI_TESTNET = 11111,
|
|
244
|
-
AVALANCHE_PLAYA3ULL_TESTNET = 3012,
|
|
245
166
|
AVALANCHE_MIRAI_TESTNET = 2195,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
AVALANCHE_LT5_TESTNET = 31335,
|
|
249
|
-
AVALANCHE_HUBBLE_EXCHANGE_MAINNET = 1992,
|
|
250
|
-
METER_MAINNET = 82,
|
|
251
|
-
METER_TESTNET = 83,
|
|
252
|
-
MILKOMEDA_A1_MAINNET = 2002,
|
|
253
|
-
MILKOMEDA_C1_MAINNET = 2001,
|
|
254
|
-
MILKOMEDA_C1_DEVNET = 200101,
|
|
167
|
+
BERACHAIN_MAINNET = 80094,
|
|
168
|
+
UNICHAIN_MAINNET = 130,
|
|
255
169
|
CANTO_MAINNET = 7700,
|
|
256
170
|
FLARENETWORKS_FLARE_MAINNET = 14,
|
|
257
171
|
FLARENETWORKS_FLARE_TESTNET = 114,
|
|
258
|
-
FLARENETWORKS_CANARY_MAINNET = 19,
|
|
259
|
-
FLARENETWORKS_CANARY_TESTNET = 16,
|
|
260
|
-
KCC_MAINNET = 321,
|
|
261
|
-
KCC_TESTNET = 322,
|
|
262
172
|
POLYGON_ZKEVM_MAINNET = 1101,
|
|
263
173
|
LINEA_MAINNET = 59144,
|
|
264
174
|
LINEA_GOERLI_TESTNET = 59140,
|
|
@@ -266,73 +176,55 @@ export declare enum ChainID {
|
|
|
266
176
|
POLYGON_ZKEVM_TESTNET = 1422,
|
|
267
177
|
POLYGON_AMOY_TESTNET = 80002,
|
|
268
178
|
MANTLE_MAINNET = 5000,
|
|
269
|
-
POLYGON_ZKEVM_CARDONA_TESTNET = 2442,
|
|
270
179
|
MANTLE_SEPOLIA_TESTNET = 5003,
|
|
180
|
+
POLYGON_ZKEVM_CARDONA_TESTNET = 2442,
|
|
271
181
|
BASE_MAINNET = 8453,
|
|
272
|
-
BASE_TESTNET = 84531,
|
|
273
182
|
BASE_SEPOLIA_TESTNET = 84532,
|
|
274
|
-
OASYS_MAINNET = 248,
|
|
275
|
-
OASYS_TESTNET = 9372,
|
|
276
183
|
SX_MAINNET = 416,
|
|
277
|
-
LUMOZ_PUBLIC_ZKSYNC_V2 = 12027,
|
|
278
|
-
LUMOZ_STARK_SPORT = 12029,
|
|
279
184
|
OASIS_SAPPHIRE_MAINNET = 23294,
|
|
280
|
-
OASIS_SAPPHIRE_TESTNET = 23295,
|
|
281
|
-
XAI_MAINNET = 660279,
|
|
282
185
|
SYNDR_TESTNET = 412346,
|
|
186
|
+
OASIS_SAPPHIRE_TESTNET = 23295,
|
|
283
187
|
CELO_MAINNET = 42220,
|
|
284
188
|
X1_MAINNET = 196,
|
|
285
|
-
CROSSFI_EVM_TESTNET = 8545,
|
|
286
189
|
HORIZEN_EON_MAINNET = 7332,
|
|
287
190
|
HORIZEN_GOBI_TESTNET = 1663,
|
|
288
191
|
FRAXTAL_MAINNET = 252,
|
|
289
192
|
APECHAIN_TESTNET = 1798,
|
|
290
193
|
BERACHAIN_TESTNET = 80084,
|
|
291
|
-
LISK_MAINNET = 1135,
|
|
292
194
|
REDSTONE_MAINNET = 690,
|
|
293
195
|
SEI_MAINNET = 1329,
|
|
196
|
+
APECHAIN_MAINNET = 33139,
|
|
197
|
+
UNICHAIN_SEPOLIA_TESTNET = 1301,
|
|
198
|
+
WORLD_MAINNET = 480,
|
|
199
|
+
WORLD_SEPOLIA_TESTNET = 4801,
|
|
200
|
+
LENS_SEPOLIA_TESTNET = 37111,
|
|
201
|
+
INK_SEPOLIA_TESTNET = 763373,
|
|
202
|
+
INK_MAINNET = 57073,
|
|
294
203
|
AVALANCHE_MELD_TESTNET = 222000222,
|
|
295
204
|
AVALANCHE_MELD_MAINNET = 333000333,
|
|
296
205
|
GUNZILLA_TESTNET = 49321,
|
|
297
|
-
ULTRON_MAINNET = 1231,
|
|
298
|
-
ULTRON_TESTNET = 1230,
|
|
299
206
|
ZORA_MAINNET = 7777777,
|
|
300
207
|
ZORA_SEPOLIA_TESTNET = 999999999,
|
|
301
|
-
LISK_SEPOLIA_TESTNET = 4202,
|
|
302
|
-
OPSIDE_READON_CONTENT_TESTNET = 12015,
|
|
303
208
|
ZKSYNC_MAINNET = 324,
|
|
304
209
|
ZKSYNC_SEPOLIA_TESTNET = 300,
|
|
305
|
-
BNB_ANTIMATTER_TESTNET = 20221,
|
|
306
|
-
BNB_META_APES_MAINNET = 16350,
|
|
307
|
-
BNB_FNCY_MAINNET = 73,
|
|
308
210
|
BNB_OPBNB_TESTNET = 5611,
|
|
309
|
-
BNB_FNCY_TESTNET = 923018,
|
|
310
211
|
BNB_OPBNB_MAINNET = 204,
|
|
311
212
|
ZETACHAIN_TESTNET = 7001,
|
|
312
213
|
ZETACHAIN_MAINNET = 7000,
|
|
313
|
-
MODE_TESTNET = 919,
|
|
314
|
-
MODE_MAINNET = 34443,
|
|
315
214
|
KINTO_TESTNET = 42888,
|
|
316
|
-
LOOT_MAINNET = 5151706,
|
|
317
|
-
PGN_MAINNET = 424,
|
|
318
|
-
PGN_TESTNET = 58008,
|
|
319
215
|
MANTA_SEPOLIA_TESTNET = 3441006,
|
|
320
216
|
ROLLUX_MAINNET = 570,
|
|
321
|
-
ROLLUX_TESTNET = 57000,
|
|
322
217
|
GNOSIS_MAINNET = 100,
|
|
323
218
|
GNOSIS_TESTNET = 10200,
|
|
324
219
|
VICTION_MAINNET = 88,
|
|
325
220
|
VICTION_TESTNET = 89,
|
|
326
|
-
TELOS_MAINNET = 40,
|
|
327
|
-
TELOS_TESTNET = 41,
|
|
328
221
|
TAIKO_HEKLA_TESTNET = 167009,
|
|
329
222
|
TAIKO_MAINNET = 167000,
|
|
330
223
|
MERLIN_MAINNET = 4200,
|
|
331
224
|
MERLIN_TESTNET = 686868,
|
|
332
|
-
BLAST_MAINNET = 81457,
|
|
333
225
|
MOVEMENT_MEVM_TESTNET = 336,
|
|
334
|
-
|
|
335
|
-
|
|
226
|
+
BLAST_MAINNET = 81457,
|
|
227
|
+
SCROLL_MAINNET = 534352
|
|
336
228
|
}
|
|
337
229
|
export type Chain = ChainID | ChainName | `${ChainName}` | `${ChainID}`;
|
|
338
230
|
export type Source = "Ponder" | "GoldRush" | "Viem";
|