@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.
- package/LICENSE +2 -2
- package/dist/example-client.js +1 -6
- package/dist/example-client.js.map +1 -1
- package/dist/index.js +0 -0
- package/dist/services/AllChainsService.d.ts.map +1 -1
- package/dist/services/AllChainsService.js +20 -31
- package/dist/services/AllChainsService.js.map +1 -1
- package/dist/services/BalanceService.d.ts.map +1 -1
- package/dist/services/BalanceService.js +47 -104
- package/dist/services/BalanceService.js.map +1 -1
- package/dist/services/BaseService.d.ts.map +1 -1
- package/dist/services/BaseService.js +55 -50
- package/dist/services/BaseService.js.map +1 -1
- package/dist/services/BitcoinService.d.ts.map +1 -1
- package/dist/services/BitcoinService.js +11 -22
- package/dist/services/BitcoinService.js.map +1 -1
- package/dist/services/NftService.d.ts.map +1 -1
- package/dist/services/NftService.js +44 -24
- package/dist/services/NftService.js.map +1 -1
- package/dist/services/PricingService.d.ts.map +1 -1
- package/dist/services/PricingService.js +12 -17
- package/dist/services/PricingService.js.map +1 -1
- package/dist/services/SecurityService.d.ts.map +1 -1
- package/dist/services/SecurityService.js +4 -5
- package/dist/services/SecurityService.js.map +1 -1
- package/dist/services/TransactionService.d.ts.map +1 -1
- package/dist/services/TransactionService.js +27 -46
- package/dist/services/TransactionService.js.map +1 -1
- package/dist/utils/constants.d.ts +18 -1
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/generated-descriptions.d.ts +192 -0
- package/dist/utils/generated-descriptions.d.ts.map +1 -0
- package/dist/utils/generated-descriptions.js +219 -0
- package/dist/utils/generated-descriptions.js.map +1 -0
- package/dist/utils/tool-slug-map.d.ts +2 -0
- package/dist/utils/tool-slug-map.d.ts.map +1 -0
- package/dist/utils/tool-slug-map.js +31 -0
- package/dist/utils/tool-slug-map.js.map +1 -0
- package/package.json +87 -92
- package/README.md +0 -503
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionService.d.ts","sourceRoot":"","sources":["../../src/services/TransactionService.ts"],"names":[],"mappings":"
|
|
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", "
|
|
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("
|
|
10
|
+
.describe(PARAM_DESCRIPTIONS["transaction"]["chainName"]),
|
|
18
11
|
txHash: z
|
|
19
12
|
.string()
|
|
20
|
-
.describe("
|
|
13
|
+
.describe(PARAM_DESCRIPTIONS["transaction"]["txHash"]),
|
|
21
14
|
quoteCurrency: z
|
|
22
15
|
.enum(Object.values(validQuoteValues))
|
|
23
16
|
.optional()
|
|
24
|
-
.describe("
|
|
17
|
+
.describe(PARAM_DESCRIPTIONS["transaction"]["quoteCurrency"]),
|
|
25
18
|
noLogs: z
|
|
26
19
|
.boolean()
|
|
27
20
|
.optional()
|
|
28
21
|
.default(true)
|
|
29
|
-
.describe("
|
|
22
|
+
.describe(PARAM_DESCRIPTIONS["transaction"]["noLogs"]),
|
|
30
23
|
withInternal: z
|
|
31
24
|
.boolean()
|
|
32
25
|
.optional()
|
|
33
|
-
.describe("
|
|
26
|
+
.describe(PARAM_DESCRIPTIONS["transaction"]["withInternal"]),
|
|
34
27
|
withState: z
|
|
35
28
|
.boolean()
|
|
36
29
|
.optional()
|
|
37
|
-
.describe("
|
|
30
|
+
.describe(PARAM_DESCRIPTIONS["transaction"]["withState"]),
|
|
38
31
|
withInputData: z
|
|
39
32
|
.boolean()
|
|
40
33
|
.optional()
|
|
41
|
-
.describe("
|
|
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", "
|
|
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("
|
|
63
|
+
.describe(PARAM_DESCRIPTIONS["transaction_summary"]["chainName"]),
|
|
74
64
|
walletAddress: z
|
|
75
65
|
.string()
|
|
76
|
-
.describe("
|
|
66
|
+
.describe(PARAM_DESCRIPTIONS["transaction_summary"]["walletAddress"]),
|
|
77
67
|
quoteCurrency: z
|
|
78
68
|
.enum(Object.values(validQuoteValues))
|
|
79
69
|
.optional()
|
|
80
|
-
.describe("
|
|
70
|
+
.describe(PARAM_DESCRIPTIONS["transaction_summary"]["quoteCurrency"]),
|
|
81
71
|
withGas: z
|
|
82
72
|
.boolean()
|
|
83
73
|
.optional()
|
|
84
|
-
.describe("
|
|
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", "
|
|
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("
|
|
100
|
+
.describe(PARAM_DESCRIPTIONS["transactions_for_address"]["chainName"]),
|
|
114
101
|
walletAddress: z
|
|
115
102
|
.string()
|
|
116
|
-
.describe("
|
|
103
|
+
.describe(PARAM_DESCRIPTIONS["transactions_for_address"]["walletAddress"]),
|
|
117
104
|
page: z
|
|
118
105
|
.number()
|
|
119
|
-
.describe("
|
|
106
|
+
.describe(PARAM_DESCRIPTIONS["transactions_for_address"]["page"]),
|
|
120
107
|
quoteCurrency: z
|
|
121
108
|
.enum(Object.values(validQuoteValues))
|
|
122
109
|
.optional()
|
|
123
|
-
.describe("
|
|
110
|
+
.describe(PARAM_DESCRIPTIONS["transactions_for_address"]["quoteCurrency"]),
|
|
124
111
|
noLogs: z
|
|
125
112
|
.boolean()
|
|
126
113
|
.optional()
|
|
127
114
|
.default(true)
|
|
128
|
-
.describe("
|
|
115
|
+
.describe(PARAM_DESCRIPTIONS["transactions_for_address"]["noLogs"]),
|
|
129
116
|
blockSignedAtAsc: z
|
|
130
117
|
.boolean()
|
|
131
118
|
.optional()
|
|
132
|
-
.describe("
|
|
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", "
|
|
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("
|
|
146
|
+
.describe(PARAM_DESCRIPTIONS["transactions_for_block"]["chainName"]),
|
|
163
147
|
blockHeight: z
|
|
164
148
|
.union([z.string(), z.number(), z.literal("latest")])
|
|
165
|
-
.describe("
|
|
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("
|
|
153
|
+
.describe(PARAM_DESCRIPTIONS["transactions_for_block"]["quoteCurrency"]),
|
|
173
154
|
noLogs: z
|
|
174
155
|
.boolean()
|
|
175
156
|
.optional()
|
|
176
|
-
.describe("
|
|
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,
|
|
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,
|
|
1
|
+
{"version":3,"file":"TransactionService.js","sourceRoot":"","sources":["../../src/services/TransactionService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACH,kBAAkB,EAClB,iBAAiB,GACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAEH,SAAS,GAGZ,MA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,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<
|
|
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,
|
|
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"}
|