contract_get_function_args
Parse a contract's ABI or use nearblocks.io API to retrieve function call arguments for NEAR blockchain. Checks recent method executions to identify likely inputs. Experimental tool.
Instructions
Get the arguments of a function call by parsing the contract's ABI or by using the nearblocks.io API (as a fallback). This function API checks recent execution results of the contract's method being queried to determine the likely arguments of the function call. Warning: This tool is experimental and is not garunteed to get the correct arguments.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
contractId | Yes | ||
methodName | Yes | ||
networkId | No | mainnet |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"contractId": {
"type": "string"
},
"methodName": {
"type": "string"
},
"networkId": {
"default": "mainnet",
"enum": [
"testnet",
"mainnet"
],
"type": "string"
}
},
"required": [
"contractId",
"methodName"
],
"type": "object"
}