@covalenthq/goldrush-mcp-server 0.0.4 → 3.0.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.
Files changed (40) hide show
  1. package/LICENSE +2 -2
  2. package/dist/example-client.js +1 -6
  3. package/dist/example-client.js.map +1 -1
  4. package/dist/index.js +0 -0
  5. package/dist/services/AllChainsService.d.ts.map +1 -1
  6. package/dist/services/AllChainsService.js +20 -31
  7. package/dist/services/AllChainsService.js.map +1 -1
  8. package/dist/services/BalanceService.d.ts.map +1 -1
  9. package/dist/services/BalanceService.js +47 -104
  10. package/dist/services/BalanceService.js.map +1 -1
  11. package/dist/services/BaseService.d.ts.map +1 -1
  12. package/dist/services/BaseService.js +55 -50
  13. package/dist/services/BaseService.js.map +1 -1
  14. package/dist/services/BitcoinService.d.ts.map +1 -1
  15. package/dist/services/BitcoinService.js +11 -22
  16. package/dist/services/BitcoinService.js.map +1 -1
  17. package/dist/services/NftService.d.ts.map +1 -1
  18. package/dist/services/NftService.js +44 -24
  19. package/dist/services/NftService.js.map +1 -1
  20. package/dist/services/PricingService.d.ts.map +1 -1
  21. package/dist/services/PricingService.js +12 -17
  22. package/dist/services/PricingService.js.map +1 -1
  23. package/dist/services/SecurityService.d.ts.map +1 -1
  24. package/dist/services/SecurityService.js +4 -5
  25. package/dist/services/SecurityService.js.map +1 -1
  26. package/dist/services/TransactionService.d.ts.map +1 -1
  27. package/dist/services/TransactionService.js +27 -46
  28. package/dist/services/TransactionService.js.map +1 -1
  29. package/dist/utils/constants.d.ts +18 -1
  30. package/dist/utils/constants.d.ts.map +1 -1
  31. package/dist/utils/generated-descriptions.d.ts +192 -0
  32. package/dist/utils/generated-descriptions.d.ts.map +1 -0
  33. package/dist/utils/generated-descriptions.js +219 -0
  34. package/dist/utils/generated-descriptions.js.map +1 -0
  35. package/dist/utils/tool-slug-map.d.ts +2 -0
  36. package/dist/utils/tool-slug-map.d.ts.map +1 -0
  37. package/dist/utils/tool-slug-map.js +31 -0
  38. package/dist/utils/tool-slug-map.js.map +1 -0
  39. package/package.json +87 -92
  40. package/README.md +0 -503
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionService.d.ts","sourceRoot":"","sources":["../../src/services/TransactionService.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,cAAc,EAEtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAezE,wBAAgB,0BAA0B,CACtC,MAAM,EAAE,SAAS,EACjB,cAAc,EAAE,cAAc,QAwRjC"}
1
+ {"version":3,"file":"TransactionService.d.ts","sourceRoot":"","sources":["../../src/services/TransactionService.ts"],"names":[],"mappings":"AAMA,OAAO,EAGH,KAAK,cAAc,EAEtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAezE,wBAAgB,0BAA0B,CACtC,MAAM,EAAE,SAAS,EACjB,cAAc,EAAE,cAAc,QA0PjC"}
@@ -1,44 +1,37 @@
1
1
  import { validQuoteValues } from "../utils/constants.js";
2
+ import { PARAM_DESCRIPTIONS, TOOL_DESCRIPTIONS, } from "../utils/generated-descriptions.js";
2
3
  import { stringifyWithBigInt } from "../utils/helpers.js";
3
4
  import { ChainName, } from "@covalenthq/client-sdk";
4
5
  import { z } from "zod";
5
6
  export function addTransactionServiceTools(server, goldRushClient) {
6
- server.tool("transaction", "Commonly used to fetch and render a single transaction including its decoded log events.\n" +
7
- "Required: chainName (blockchain network), txHash (transaction hash).\n" +
8
- "Optional: quoteCurrency (currency to convert to, USD by default), " +
9
- "noLogs (exclude event logs, true by default), " +
10
- "withInternal (include internal transactions, false by default), " +
11
- "withState (include state changes, false by default), " +
12
- "withInputData (include input data, false by default).\n" +
13
- "Tracing features (withInternal, withState, withInputData) supported on the following chains: eth-mainnet\n" +
14
- "Returns comprehensive details about the specified transaction.", {
7
+ server.tool("transaction", TOOL_DESCRIPTIONS["transaction"], {
15
8
  chainName: z
16
9
  .enum(Object.values(ChainName))
17
- .describe("The blockchain network to query (e.g., 'eth-mainnet', 'matic-mainnet', 'bsc-mainnet')."),
10
+ .describe(PARAM_DESCRIPTIONS["transaction"]["chainName"]),
18
11
  txHash: z
19
12
  .string()
20
- .describe("The transaction hash to get details for. Must be a valid transaction hash."),
13
+ .describe(PARAM_DESCRIPTIONS["transaction"]["txHash"]),
21
14
  quoteCurrency: z
22
15
  .enum(Object.values(validQuoteValues))
23
16
  .optional()
24
- .describe("Currency to quote transaction values in (e.g., 'USD', 'EUR'). If not specified, uses default quote currency."),
17
+ .describe(PARAM_DESCRIPTIONS["transaction"]["quoteCurrency"]),
25
18
  noLogs: z
26
19
  .boolean()
27
20
  .optional()
28
21
  .default(true)
29
- .describe("Exclude event logs from the response for faster performance. Default is true."),
22
+ .describe(PARAM_DESCRIPTIONS["transaction"]["noLogs"]),
30
23
  withInternal: z
31
24
  .boolean()
32
25
  .optional()
33
- .describe("Include internal transaction traces. Only supported on eth-mainnet. Default is false."),
26
+ .describe(PARAM_DESCRIPTIONS["transaction"]["withInternal"]),
34
27
  withState: z
35
28
  .boolean()
36
29
  .optional()
37
- .describe("Include state changes in the response. Only supported on eth-mainnet. Default is false."),
30
+ .describe(PARAM_DESCRIPTIONS["transaction"]["withState"]),
38
31
  withInputData: z
39
32
  .boolean()
40
33
  .optional()
41
- .describe("Include transaction input data in the response. Only supported on eth-mainnet. Default is false."),
34
+ .describe(PARAM_DESCRIPTIONS["transaction"]["withInputData"]),
42
35
  }, async (params) => {
43
36
  try {
44
37
  const response = await goldRushClient.TransactionService.getTransaction(params.chainName, params.txHash, {
@@ -64,24 +57,21 @@ export function addTransactionServiceTools(server, goldRushClient) {
64
57
  };
65
58
  }
66
59
  });
67
- server.tool("transaction_summary", "Commonly used to fetch the earliest and latest transactions, and the transaction count for a wallet.\n" +
68
- "Required: chainName (blockchain network), walletAddress (wallet address).\n" +
69
- "Optional: quoteCurrency, withGas (include gas usage statistics).\n" +
70
- "Returns summary of transaction activity for the specified wallet.", {
60
+ server.tool("transaction_summary", TOOL_DESCRIPTIONS["transaction_summary"], {
71
61
  chainName: z
72
62
  .enum(Object.values(ChainName))
73
- .describe("The blockchain network to query (e.g., 'eth-mainnet', 'matic-mainnet', 'bsc-mainnet')."),
63
+ .describe(PARAM_DESCRIPTIONS["transaction_summary"]["chainName"]),
74
64
  walletAddress: z
75
65
  .string()
76
- .describe("The wallet address to get transaction summary for. Must be a valid blockchain address."),
66
+ .describe(PARAM_DESCRIPTIONS["transaction_summary"]["walletAddress"]),
77
67
  quoteCurrency: z
78
68
  .enum(Object.values(validQuoteValues))
79
69
  .optional()
80
- .describe("Currency to quote transaction values in (e.g., 'USD', 'EUR'). If not specified, uses default quote currency."),
70
+ .describe(PARAM_DESCRIPTIONS["transaction_summary"]["quoteCurrency"]),
81
71
  withGas: z
82
72
  .boolean()
83
73
  .optional()
84
- .describe("Include gas usage statistics in the summary. Default is false."),
74
+ .describe(PARAM_DESCRIPTIONS["transaction_summary"]["withGas"]),
85
75
  }, async (params) => {
86
76
  try {
87
77
  const response = await goldRushClient.TransactionService.getTransactionSummary(params.chainName, params.walletAddress, {
@@ -104,32 +94,29 @@ export function addTransactionServiceTools(server, goldRushClient) {
104
94
  };
105
95
  }
106
96
  });
107
- server.tool("transactions_for_address", "Commonly used to fetch and render the most recent transactions involving an address.\n" +
108
- "Required: chainName (blockchain network), walletAddress (wallet address), page (page number).\n" +
109
- "Optional: quoteCurrency, noLogs, blockSignedAtAsc (chronological order).\n" +
110
- "Returns transactions for the specified page of results.", {
97
+ server.tool("transactions_for_address", TOOL_DESCRIPTIONS["transactions_for_address"], {
111
98
  chainName: z
112
99
  .enum(Object.values(ChainName))
113
- .describe("The blockchain network to query (e.g., 'eth-mainnet', 'matic-mainnet', 'bsc-mainnet')."),
100
+ .describe(PARAM_DESCRIPTIONS["transactions_for_address"]["chainName"]),
114
101
  walletAddress: z
115
102
  .string()
116
- .describe("The wallet address to get transactions for. Must be a valid blockchain address."),
103
+ .describe(PARAM_DESCRIPTIONS["transactions_for_address"]["walletAddress"]),
117
104
  page: z
118
105
  .number()
119
- .describe("Page number for pagination, starting from 0. Each page contains multiple transactions."),
106
+ .describe(PARAM_DESCRIPTIONS["transactions_for_address"]["page"]),
120
107
  quoteCurrency: z
121
108
  .enum(Object.values(validQuoteValues))
122
109
  .optional()
123
- .describe("Currency to quote transaction values in (e.g., 'USD', 'EUR'). If not specified, uses default quote currency."),
110
+ .describe(PARAM_DESCRIPTIONS["transactions_for_address"]["quoteCurrency"]),
124
111
  noLogs: z
125
112
  .boolean()
126
113
  .optional()
127
114
  .default(true)
128
- .describe("Exclude event logs from transactions for faster performance. Default is true."),
115
+ .describe(PARAM_DESCRIPTIONS["transactions_for_address"]["noLogs"]),
129
116
  blockSignedAtAsc: z
130
117
  .boolean()
131
118
  .optional()
132
- .describe("Sort transactions in ascending chronological order. Default is false (newest first)."),
119
+ .describe(PARAM_DESCRIPTIONS["transactions_for_address"]["blockSignedAtAsc"]),
133
120
  }, async (params) => {
134
121
  try {
135
122
  const response = await goldRushClient.TransactionService.getPaginatedTransactionsForAddress(params.chainName, params.walletAddress, params.page, {
@@ -153,30 +140,24 @@ export function addTransactionServiceTools(server, goldRushClient) {
153
140
  };
154
141
  }
155
142
  });
156
- server.tool("transactions_for_block", "Commonly used to fetch all transactions including their decoded log events in a block and further flag interesting wallets or transactions.\n" +
157
- "Required: chainName (blockchain network), blockHeight (block number or latest).\n" +
158
- "Optional: quoteCurrency, noLogs (exclude event logs).\n" +
159
- "Returns all transactions from the specified block.", {
143
+ server.tool("transactions_for_block", TOOL_DESCRIPTIONS["transactions_for_block"], {
160
144
  chainName: z
161
145
  .enum(Object.values(ChainName))
162
- .describe("The blockchain network to query (e.g., 'eth-mainnet', 'matic-mainnet', 'bsc-mainnet')."),
146
+ .describe(PARAM_DESCRIPTIONS["transactions_for_block"]["chainName"]),
163
147
  blockHeight: z
164
148
  .union([z.string(), z.number(), z.literal("latest")])
165
- .describe("The block number to get transactions from. Can be a block number or 'latest' for the most recent block."),
166
- page: z
167
- .number()
168
- .describe("Page number for pagination, starting from 0. Each page contains multiple transactions from the block."),
149
+ .describe(PARAM_DESCRIPTIONS["transactions_for_block"]["blockHeight"]),
169
150
  quoteCurrency: z
170
151
  .enum(Object.values(validQuoteValues))
171
152
  .optional()
172
- .describe("Currency to quote transaction values in (e.g., 'USD', 'EUR'). If not specified, uses default quote currency."),
153
+ .describe(PARAM_DESCRIPTIONS["transactions_for_block"]["quoteCurrency"]),
173
154
  noLogs: z
174
155
  .boolean()
175
156
  .optional()
176
- .describe("Exclude event logs from transactions for faster performance. Default varies by implementation."),
157
+ .describe(PARAM_DESCRIPTIONS["transactions_for_block"]["noLogs"]),
177
158
  }, async (params) => {
178
159
  try {
179
- const response = await goldRushClient.TransactionService.getTransactionsForBlockByPage(params.chainName, params.blockHeight, params.page, {
160
+ const response = await goldRushClient.TransactionService.getTransactionsForBlockByPage(params.chainName, params.blockHeight, 0, {
180
161
  quoteCurrency: params.quoteCurrency,
181
162
  noLogs: params.noLogs,
182
163
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionService.js","sourceRoot":"","sources":["../../src/services/TransactionService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAEH,SAAS,GAGZ,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,MAAM,UAAU,0BAA0B,CACtC,MAAiB,EACjB,cAA8B;IAE9B,MAAM,CAAC,IAAI,CACP,aAAa,EACb,4FAA4F;QACxF,wEAAwE;QACxE,oEAAoE;QACpE,gDAAgD;QAChD,kEAAkE;QAClE,uDAAuD;QACvD,yDAAyD;QACzD,4GAA4G;QAC5G,gEAAgE,EACpE;QACI,SAAS,E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,CACL,kBAAkB,CAAC,wBAAwB,CAAC,CACxC,eAAe,CAClB,CACJ;QACL,MAAM,EAAE,CAAC;aACJ,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACL,kBAAkB,CAAC,wBAAwB,CAAC,CAAC,QAAQ,CAAC,CACzD;KACR,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,IAAI,CAAC;YACD,MAAM,QAAQ,GACV,MAAM,cAAc,CAAC,kBAAkB,CAAC,6BAA6B,CACjE,MAAM,CAAC,SAAkB,EACzB,MAAM,CAAC,WAAW,EAClB,CAAC,EACD;gBACI,aAAa,EAAE,MAAM,CAAC,aAAsB;gBAC5C,MAAM,EAAE,MAAM,CAAC,MAAM;aACxB,CACJ,CAAC;YACN,OAAO;gBACH,OAAO,EAAE;oBACL;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC;qBAC3C;iBACJ;aACJ,CAAC;QACN,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,OAAO;gBACH,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,EAAE,EAAE,CAAC;gBAClD,OAAO,EAAE,IAAI;aAChB,CAAC;QACN,CAAC;IACL,CAAC,CACJ,CAAC;AACN,CAAC"}
@@ -1,5 +1,22 @@
1
1
  import type { Quote } from "@covalenthq/client-sdk";
2
2
  import { z } from "zod";
3
- export declare const QUOTE_VALUES: z.ZodEnum<["USD", "CAD", "EUR", "SGD", "INR", "JPY", "VND", "CNY", "KRW", "RUB", "TRY", "NGN", "ARS", "AUD", "CHF", "GBP"]>;
3
+ export declare const QUOTE_VALUES: z.ZodEnum<{
4
+ USD: "USD";
5
+ CAD: "CAD";
6
+ EUR: "EUR";
7
+ SGD: "SGD";
8
+ INR: "INR";
9
+ JPY: "JPY";
10
+ VND: "VND";
11
+ CNY: "CNY";
12
+ KRW: "KRW";
13
+ RUB: "RUB";
14
+ TRY: "TRY";
15
+ NGN: "NGN";
16
+ ARS: "ARS";
17
+ AUD: "AUD";
18
+ CHF: "CHF";
19
+ GBP: "GBP";
20
+ }>;
4
21
  export declare const validQuoteValues: readonly Quote[];
5
22
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,YAAY,6HAiBvB,CAAC;AAMH,eAAO,MAAM,gBAAgB,EAAE,SAAS,KAAK,EACV,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;EAiBvB,CAAC;AAMH,eAAO,MAAM,gBAAgB,EAAE,SAAS,KAAK,EACV,CAAC"}
@@ -0,0 +1,192 @@
1
+ type ToolName = "gas_prices" | "block" | "block_heights" | "log_events_by_address" | "log_events_by_topic" | "resolve_address" | "token_balances" | "historical_token_balances" | "historical_portfolio_value" | "erc20_token_transfers" | "token_holders" | "native_token_balance" | "transaction" | "transaction_summary" | "transactions_for_address" | "transactions_for_block" | "multichain_transactions" | "multichain_balances" | "multichain_address_activity" | "nft_for_address" | "nft_check_ownership" | "nft_check_ownership_token_id" | "bitcoin_hd_wallet_balances" | "bitcoin_transactions" | "bitcoin_non_hd_wallet_balances" | "historical_token_prices" | "pool_spot_prices" | "token_approvals";
2
+ export declare const TOOL_DESCRIPTIONS: Record<ToolName, string>;
3
+ export declare const PARAM_DESCRIPTIONS: {
4
+ readonly gas_prices: {
5
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
6
+ readonly eventType: "The desired event type to retrieve gas prices for. Supports `erc20` transfer events, `uniswapv3` swap events and `nativetokens` transfers.";
7
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
8
+ };
9
+ readonly block: {
10
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
11
+ readonly blockHeight: "The block height or `latest` for the latest block available.";
12
+ };
13
+ readonly block_heights: {
14
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
15
+ readonly startDate: "The start date in YYYY-MM-DD format.";
16
+ readonly endDate: "The end date in YYYY-MM-DD format or `latest` for the latest block available.";
17
+ readonly pageSize: "Number of items per page. Omitting this parameter defaults to 100.";
18
+ readonly pageNumber: "0-indexed page number to begin pagination.";
19
+ };
20
+ readonly log_events_by_address: {
21
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
22
+ readonly contractAddress: "The requested contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
23
+ readonly startingBlock: "The first block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`.";
24
+ readonly endingBlock: "The last block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`.";
25
+ readonly pageSize: "Number of items per page. Omitting this parameter defaults to 100.";
26
+ readonly pageNumber: "0-indexed page number to begin pagination.";
27
+ };
28
+ readonly log_events_by_topic: {
29
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
30
+ readonly topicHash: "The endpoint will return event logs that contain this topic hash.";
31
+ readonly startingBlock: "The first block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`.";
32
+ readonly endingBlock: "The last block to retrieve log events with. Accepts decimals, hexadecimals, or the strings `earliest` and `latest`.";
33
+ readonly secondaryTopics: "Additional topic hash(es) to filter on - padded & unpadded address fields are supported. Separate multiple topics with a comma.";
34
+ readonly pageSize: "Number of items per page. Omitting this parameter defaults to 100.";
35
+ readonly pageNumber: "0-indexed page number to begin pagination.";
36
+ };
37
+ readonly resolve_address: {
38
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
39
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
40
+ };
41
+ readonly token_balances: {
42
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
43
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
44
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
45
+ readonly noSpam: "If `true`, the suspected spam tokens are removed. Supported on all Foundational Chains.";
46
+ };
47
+ readonly historical_token_balances: {
48
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
49
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
50
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
51
+ readonly noSpam: "If `true`, the suspected spam tokens are removed. Supported on all Foundational Chains.";
52
+ readonly blockHeight: "Ending block to define a block range. Omitting this parameter defaults to the latest block height.";
53
+ readonly date: "Ending date to define a block range (YYYY-MM-DD). Omitting this parameter defaults to the current date.";
54
+ };
55
+ readonly historical_portfolio_value: {
56
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
57
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
58
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
59
+ readonly days: "The number of days to return data for. Defaults to 30 days.";
60
+ };
61
+ readonly erc20_token_transfers: {
62
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
63
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
64
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
65
+ readonly contractAddress: "The requested contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
66
+ readonly startingBlock: "The block height to start from, defaults to `0`.";
67
+ readonly endingBlock: "The block height to end at, defaults to current block height.";
68
+ readonly pageSize: "Number of items per page. Omitting this parameter defaults to 100.";
69
+ readonly pageNumber: "0-indexed page number to begin pagination.";
70
+ };
71
+ readonly token_holders: {
72
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
73
+ readonly tokenAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
74
+ readonly noSnapshot: "Defaults to `false`. Set to `true` to bypass last snapshot and get the latest token holders list.";
75
+ readonly blockHeight: "Ending block to define a block range. Omitting this parameter defaults to the latest block height.";
76
+ readonly date: "Ending date to define a block range (YYYY-MM-DD). Omitting this parameter defaults to the current date.";
77
+ readonly pageSize: "Number of items per page. Note: Currently, only values of `100` and `1000` are supported. Omitting this parameter defaults to 100.";
78
+ readonly pageNumber: "0-indexed page number to begin pagination.";
79
+ };
80
+ readonly native_token_balance: {
81
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
82
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
83
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
84
+ readonly blockHeight: "Ending block to define a block range. Omitting this parameter defaults to the latest block height.";
85
+ };
86
+ readonly transaction: {
87
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
88
+ readonly txHash: "The transaction hash.";
89
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
90
+ readonly noLogs: "Omit log events.";
91
+ readonly withInternal: "Whether to include internal transfers/transactions.";
92
+ readonly withState: "Whether to include all transaction state changes with before and after values.";
93
+ readonly withInputData: "Whether to include the transaction's input data such as the Method ID.";
94
+ };
95
+ readonly transaction_summary: {
96
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
97
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
98
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
99
+ readonly withGas: "Include gas summary details. Response times may be impacted for wallets with large number of transactions.";
100
+ readonly withTransferCount: "Represents the total count of ERC-20 token movement events, including `Transfer`, `Deposit` and `Withdraw`. Response times may be impacted for wallets with large number of transactions.";
101
+ };
102
+ readonly transactions_for_address: {
103
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
104
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
105
+ readonly page: "The requested page, 0-indexed.";
106
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
107
+ readonly noLogs: "Omit log events.";
108
+ readonly blockSignedAtAsc: "Sort the transactions in ascending chronological order. By default, it's set to `false` and returns transactions in descending chronological order.";
109
+ };
110
+ readonly transactions_for_block: {
111
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
112
+ readonly blockHeight: "The requested block height.";
113
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
114
+ readonly noLogs: "Omit log events.";
115
+ };
116
+ readonly multichain_transactions: {
117
+ readonly chains: "Comma separated list of chain names or IDs to retrieve transactions from. Defaults to all foundational chains.";
118
+ readonly addresses: "Comma separated list of addresses for which transactions are fetched.";
119
+ readonly limit: "Number of transactions to return per page, up to the default max of 100 items.";
120
+ readonly before: "Pagination cursor pointing to fetch transactions before a certain point.";
121
+ readonly after: "Pagination cursor pointing to fetch transactions after a certain point.";
122
+ readonly withLogs: "Whether to include raw logs in the response.";
123
+ readonly withDecodedLogs: "Whether to include decoded logs in the response.";
124
+ readonly withInternal: "Whether to include internal transfers/transactions.";
125
+ readonly withState: "Whether to include all transaction state changes with before and after values.";
126
+ readonly withInputData: "Whether to include the transaction's input data such as the Method ID.";
127
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, `GBP`, `BTC` and `ETH`.";
128
+ };
129
+ readonly multichain_balances: {
130
+ readonly walletAddress: "The requested address. Domain names (e.g. `demo.eth`) NOT supported.";
131
+ readonly chains: "Comma separated list of chain names or IDs to retrieve token balances from. Defaults to all foundational chains.";
132
+ readonly limit: "Number of token balances to return per page, up to the default max of 100 items.";
133
+ readonly before: "Pagination cursor pointing to fetch token balances before a certain point.";
134
+ readonly cutoffTimestamp: "UNIX timestamp to retrieve the balance snapshot from the nearest block before the specified cutoff time.";
135
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, `GBP`, `BTC` and `ETH`.";
136
+ };
137
+ readonly multichain_address_activity: {
138
+ readonly walletAddress: "The requested wallet address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
139
+ readonly testnets: "Set to true to include testnets with activity in the response. By default, it's set to `false` and only returns mainnet activity.";
140
+ };
141
+ readonly nft_for_address: {
142
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
143
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
144
+ readonly noSpam: "If `true`, the suspected spam tokens are removed. Supported on all Foundational Chains.";
145
+ readonly noNftAssetMetadata: "If `true`, the response shape is limited to a list of collections and token ids, omitting metadata and asset information. Helpful for faster response times and wallets holding a large number of NFTs.";
146
+ };
147
+ readonly nft_check_ownership: {
148
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
149
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
150
+ readonly collectionContract: "The requested collection address.";
151
+ readonly traitsFilter: "Filters NFTs based on a specific trait. If this filter is used, the API will return all NFTs with the specified trait. Must be used with \"values-filter\", is case-sensitive, and requires proper URL encoding.";
152
+ readonly valuesFilter: "Filters NFTs based on a specific trait value. If this filter is used, the API will return all NFTs with the specified trait value. Must be used with \"traits-filter\", is case-sensitive, and requires proper URL encoding.";
153
+ };
154
+ readonly nft_check_ownership_token_id: {
155
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
156
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
157
+ readonly collectionContract: "The requested collection address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
158
+ readonly tokenId: "The requested token ID.";
159
+ };
160
+ readonly bitcoin_hd_wallet_balances: {
161
+ readonly walletAddress: "The extended public key (xPub/yPub/zPub) of the HD wallet.";
162
+ readonly quoteCurrency: "The currency to convert the balance to. Supports `USD`, `CAD`, `EUR`, etc.";
163
+ };
164
+ readonly bitcoin_transactions: {
165
+ readonly address: "The bitcoin address to query.";
166
+ readonly pageSize: "Number of items per page. Omitting this parameter defaults to 100.";
167
+ readonly pageNumber: "0-indexed page number to begin pagination.";
168
+ };
169
+ readonly bitcoin_non_hd_wallet_balances: {
170
+ readonly walletAddress: "The requested bitcoin non-HD address.";
171
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
172
+ };
173
+ readonly historical_token_prices: {
174
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
175
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
176
+ readonly contractAddress: "Contract address for the token. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically. Supports multiple contract addresses separated by commas.";
177
+ readonly from: "The start day of the historical price range (YYYY-MM-DD).";
178
+ readonly to: "The end day of the historical price range (YYYY-MM-DD).";
179
+ readonly pricesAtAsc: "Sort the prices in chronological ascending order. By default, it's set to `false` and returns prices in chronological descending order.";
180
+ };
181
+ readonly pool_spot_prices: {
182
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
183
+ readonly contractAddress: "The pool contract address.";
184
+ readonly quoteCurrency: "The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.";
185
+ };
186
+ readonly token_approvals: {
187
+ readonly chainName: "The chain name eg: `eth-mainnet`.";
188
+ readonly walletAddress: "The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.";
189
+ };
190
+ };
191
+ export {};
192
+ //# sourceMappingURL=generated-descriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-descriptions.d.ts","sourceRoot":"","sources":["../../src/utils/generated-descriptions.ts"],"names":[],"mappings":"AACA,KAAK,QAAQ,GACP,YAAY,GACZ,OAAO,GACP,eAAe,GACf,uBAAuB,GACvB,qBAAqB,GACrB,iBAAiB,GACjB,gBAAgB,GAChB,2BAA2B,GAC3B,4BAA4B,GAC5B,uBAAuB,GACvB,eAAe,GACf,sBAAsB,GACtB,aAAa,GACb,qBAAqB,GACrB,0BAA0B,GAC1B,wBAAwB,GACxB,yBAAyB,GACzB,qBAAqB,GACrB,6BAA6B,GAC7B,iBAAiB,GACjB,qBAAqB,GACrB,8BAA8B,GAC9B,4BAA4B,GAC5B,sBAAsB,GACtB,gCAAgC,GAChC,yBAAyB,GACzB,kBAAkB,GAClB,iBAAiB,CAAC;AACxB,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAwDtD,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiQ8B,CAAC"}