Back to marketplace

platform/read_contract

Read Contract

Teardrop Uncategorized Built-in

Per-call price

$0.005000

0 uses Healthy
Add to org

Description

Call any view/pure function on a smart contract with your ABI fragment. Supports historical queries via block number. State-changing calls are rejected.

Parameters

  • contract_address string required — Contract address (0x…)
  • abi_fragment string required — JSON array containing the ABI for the function to call. Supports both modern (stateMutability: view/pure) and legacy (constant: true) formats. Only read-only functions are allowed.
  • function_name string required — Name of the function to call
  • args_json any optional — Optional JSON array string of positional arguments for the function call. Use this instead of 'args' for complex types or when calling via Google/Gemini.
  • args array optional — DEPRECATED: Positional arguments for the function call. Use 'args_json' for complex objects or Gemini compatibility.
  • block_identifier string optional — Block number, block hash, or 'latest'/'earliest'/'pending'
  • chain_id integer optional — Chain ID (1=Ethereum, 8453=Base)