You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="Retrieve blockchain events with flexible filtering options. Use this to search for specific events or to analyze event patterns across multiple blocks."
14
14
)
15
-
defget_events(
15
+
defget_all_events(
16
16
self,
17
17
chain: Annotated[
18
18
list[int] |int|None,
@@ -22,10 +22,6 @@ def get_events(
22
22
str|None,
23
23
"Contract address to filter events by (e.g., '0x1234...'). Only return events emitted by this contract.",
24
24
] =None,
25
-
decode: Annotated[
26
-
bool|None, "Set to True to decode event data into human-readable format using contract ABIs."
27
-
] =None,
28
-
block_number: Annotated[int|None, "Exact block number to query events from (e.g., 15000000)."] =None,
29
25
block_number_gte: Annotated[int|None, "Minimum block number to start querying from (inclusive)."] =None,
30
26
block_number_lt: Annotated[int|None, "Maximum block number to query up to (exclusive)."] =None,
31
27
transaction_hash: Annotated[
@@ -42,17 +38,21 @@ def get_events(
42
38
page: Annotated[
43
39
int|None, "Page number for paginated results, starting from 0. Use with limit parameter."
44
40
] =None,
41
+
sort_order: Annotated[
42
+
str|None,
43
+
"Sort order for the events. Default is 'desc' for descending order. Use 'asc' for ascending order.",
description="Get events for a specific contract filtered by event signature. Useful for tracking particular event types like Transfers, Approvals, or custom events."
119
-
)
120
-
defget_contract_events_by_signature(
121
-
self,
122
-
contract_address: Annotated[
123
-
str, "The contract address to query events for (e.g., '0x1234...'). Must be a valid Ethereum address."
124
-
],
125
-
signature: Annotated[
126
-
str,
127
-
"Event signature to filter by (e.g., 'Transfer(address,address,uint256)' or the hash '0xddf252ad...'). This determines which type of events to retrieve.",
128
-
],
129
-
chain: Annotated[
130
-
list[int] |int|None,
131
-
"Chain ID(s) to query (e.g., 1 for Ethereum, 137 for Polygon). Specify multiple IDs as a list for cross-chain queries.",
132
-
] =None,
133
-
decode: Annotated[
134
-
bool|None,
135
-
"Set to True to decode event data into human-readable format. Recommended for easier interpretation.",
136
-
] =None,
137
-
block_number_gte: Annotated[
138
-
int|None,
139
-
"Only return events from blocks with number greater than or equal to this value. Useful for recent history.",
140
-
] =None,
141
-
limit: Annotated[
142
-
int|None, "Maximum number of events to return per request. Default is 20, adjust based on your needs."
143
-
] =None,
144
-
page: Annotated[
145
-
int|None, "Page number for paginated results, starting from 0. Use for browsing large result sets."
description="Retrieve blockchain transactions with flexible filtering options. Use this to analyze transaction patterns, track specific transactions, or monitor wallet activity."
164
122
)
@@ -180,10 +138,6 @@ def get_all_transactions(
180
138
str|None,
181
139
"Filter by function selector (e.g., '0x095ea7b3' for the approve function). Useful for finding specific contract interactions.",
182
140
] =None,
183
-
decode: Annotated[
184
-
bool,
185
-
"Set to True to decode transaction input data using contract ABIs. Makes contract interactions human-readable.",
186
-
] =True,
187
141
sort_order: Annotated[
188
142
str|None,
189
143
"Sort order for the transactions. Default is 'asc' for ascending order. Use 'desc' for descending order.",
description="Get current market prices for specified tokens. Useful for valuation, tracking portfolio value, or monitoring price changes."
269
+
description="Get current market prices for native and ERC20 tokens. Useful for valuation, tracking portfolio value, or monitoring price changes."
317
270
)
318
271
defget_token_prices(
319
272
self,
320
273
token_addresses: Annotated[
321
274
list[str],
322
-
"List of token contract addresses to get prices for (e.g., ['0x1234...', '0x5678...']). Can include ERC20 tokens.",
275
+
"List of token contract addresses to get prices for (e.g., ['0x1234...', '0x5678...']). Can include ERC20 tokens. Use '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' for native tokens (ETH, POL, MATIC, etc.).",
323
276
],
324
277
chain: Annotated[
325
278
list[int] |int|None,
326
279
"Chain ID(s) where the tokens exist (e.g., 1 for Ethereum, 137 for Polygon). Must match the token network.",
327
280
] =None,
328
-
currencies: Annotated[
329
-
list[str] |None,
330
-
"List of currencies to return prices in (e.g., ['usd', 'eth']). Default is USD if not specified.",
description="Retrieve the Application Binary Interface (ABI) for a smart contract. Essential for decoding contract data and interacting with the contract."
343
-
)
344
-
defget_contract_abi(
345
-
self,
346
-
contract_address: Annotated[
347
-
str,
348
-
"The contract address to get the ABI for (e.g., '0x1234...'). Must be a deployed and verified contract.",
349
-
],
350
-
chain: Annotated[
351
-
list[int] |int|None,
352
-
"Chain ID(s) where the contract is deployed (e.g., 1 for Ethereum). Specify the correct network.",
description="Get metadata about a smart contract, including name, symbol, decimals, and other contract-specific information."
289
+
description="Get contract ABI and metadata about a smart contract, including name, symbol, decimals, and other contract-specific information. This tool also retrieve the Application Binary Interface (ABI) for a smart contract. Essential for decoding contract data and interacting with the contract"
description="Resolve ENS names to Ethereum addresses or vice versa. Useful for working with human-readable names instead of addresses."
419
+
description="Search and analyze blockchain input data: block number, transaction or block hash, wallet or contract address, event signature or function selector. It returns a detailed analyzed information about the input data."
493
420
)
494
421
defresolve(
495
422
self,
496
423
input_data: Annotated[
497
424
str,
498
-
"The ENS name (e.g., 'thirdweb.eth') or address (e.g., '0x1234...') to resolve. Works in both directions.",
425
+
"Any blockchain input data: block number, transaction or block hash, address, event signature or function selector",
0 commit comments