Pre-General Availability: 2026-02-23
Read-only Contract Query
post
/v1/besu/query
Executes an eth_call with support for encoding for functionSignature/functionArgs.
Request
Header Parameters
-
X-Besu-Url: string
Optional upstream JSON-RPC URL override. When provided, the request is sent to this URL.
-
X-Request-Id: string
Optional request correlation identifier. Echoed in responses when provided.
Supported Media Types
- application/json
Root Schema : schema
Type:
objectInput for read-only contract query
Show Source
-
blockTag: string
Block tag ("latest", "pending", "earliest", hex or decimal block number)
-
contractAbi: array
contractAbi
Optional ABI used to infer parameter types when functionSignature omits types (name-only). If omitted and toAddress is provided, the gateway may resolve the ABI by address when available.
-
data: string
Hex calldata; if absent and functionSignature provided, gateway encodes it
-
decode: object
DecodeOptions
Selective decode options; flags default to false when omitted.
-
ethValue: string
Optional wei value for eth_call
-
fromAddress: string
Optional call sender; defaults to zero-address if omitted
-
functionArgs: array
functionArgs
Function arguments as strings. Scalars as plain strings; arrays/tuples as JSON strings (for example, '["1","2"]').
-
functionSignature: string
Function selector for ABI encoding. Provide fully specified signature (for example, "balanceOf(address)") or name-only. For name-only, parameter types are inferred from contractAbi when provided; if absent and toAddress is provided, the gateway may resolve the ABI by address when available.
-
gasLimit: integer
Optional gas limit for eth_call execution
-
toAddress(required): string
Target contract address
Nested Schema : contractAbi
Type:
arrayOptional ABI used to infer parameter types when functionSignature omits types (name-only). If omitted and toAddress is provided, the gateway may resolve the ABI by address when available.
Show Source
Nested Schema : DecodeOptions
Type:
objectSelective decode options; flags default to false when omitted.
Show Source
-
errors: boolean
Decode revert reasons (both endpoints)
-
events: boolean
Decode event logs (signTransaction)
-
inputs: boolean
Decode function inputs (signTransaction)
-
outputs: boolean
Decode function outputs (query)
Nested Schema : functionArgs
Type:
arrayFunction arguments as strings. Scalars as plain strings; arrays/tuples as JSON strings (for example, '["1","2"]').
Show Source
Nested Schema : items
Type:
objectExamples
Back to Top
Response
Supported Media Types
- application/json
200 Response
eth_call executed
Root Schema : QueryResponse
Type:
Show Source
object-
blockTag: string
Block parameter used for the call ("latest", "pending", "earliest", or a block number)
-
data: string
0x-hex encoded calldata used for the call
-
decoded: object
DecodedResult
Aggregate decoded information for the transaction or call
-
encodedFromSignature: boolean
True if calldata was generated from functionSignature
-
from: string
Sender address used to execute the eth_call
-
rawResult: string
0x-hex return data from eth_call
-
to: string
Target contract address for the call
Nested Schema : DecodedResult
Type:
objectAggregate decoded information for the transaction or call
Show Source
-
error: object
DecodedError
-
events: array
events
-
function: object
DecodedFunctionInfo
-
input: object
DecodedInput
Decoded function input arguments
-
meta: object
DecodedMeta
-
output: object
DecodedOutput
Decoded function return values
Nested Schema : DecodedError
Type:
Show Source
object-
customError: object
customError
Decoded custom error as defined in the contract ABI
-
standardError: object
standardError
Decoded standard Error(string) revert
-
standardPanic: object
standardPanic
Decoded Panic(uint256) revert
Nested Schema : DecodedFunctionInfo
Type:
Show Source
object-
name: string
Function name without parameter types
-
selector: string
4-byte function selector (0x-prefixed hex)
-
signature: string
Canonical function signature including parameter types (for example, "approve(address,uint256)")
Nested Schema : DecodedMeta
Type:
Show Source
object-
abiSource: string
Allowed Values:
[ "request", "registry", "none" ]Where ABI was resolved from -
warnings: array
warnings
Non-fatal issues encountered while attempting to decode
Nested Schema : customError
Type:
objectDecoded custom error as defined in the contract ABI
Show Source
Nested Schema : standardError
Type:
objectDecoded standard Error(string) revert
Show Source
-
message: string
Revert message string
-
selector: string
Example:
0x08c379a0
Nested Schema : standardPanic
Type:
objectDecoded Panic(uint256) revert
Show Source
-
code: string
Panic code value (hex or decimal string)
-
meaning: string
Human-readable interpretation of the panic code, when known
-
selector: string
Example:
0x4e487b71
Nested Schema : DecodedArgument
Type:
Show Source
object-
indexed: boolean
Only for event parameters
-
name: string
May be empty if unknown
-
type: string
Canonical ABI type (for example, uint256, address, (uint256,address), uint256[])
-
value:
Normalized JSON value (address lowercase hex, bigints as decimal strings, bytes as 0x-hex)
Nested Schema : DecodedEvent
Type:
Show Source
object-
address: string
Contract address that emitted the log
-
args: array
args
Decoded event arguments (indexed indicates topic-encoded parameter)
-
data: string
Event data payload (0x-hex)
-
logIndex: integer
Zero-based index of the log within the block
-
name: string
Event name without parameter types
-
signature: string
Canonical event signature including parameter types
-
topics: array
topics
Log topics as 0x-hex values
Nested Schema : args
Type:
arrayDecoded event arguments (indexed indicates topic-encoded parameter)
Show Source
Nested Schema : warnings
Type:
arrayNon-fatal issues encountered while attempting to decode
Show Source
Examples
400 Response
Validation error or invalid input
Root Schema : ErrorResponse
Type:
Show Source
object-
decodedError: object
DecodedError
-
error: string
Short error summary suitable for display
-
hint: string
Optional guidance that may help resolve the error
-
message: string
Additional error details, when available
-
requestId: string
Client-provided correlation ID echoed in responses
-
upstreamCode: integer
Upstream node error code (if provided by the RPC endpoint)
-
upstreamData: string
Raw upstream error data payload (0x-hex or JSON), if available
Nested Schema : DecodedError
Type:
Show Source
object-
customError: object
customError
Decoded custom error as defined in the contract ABI
-
standardError: object
standardError
Decoded standard Error(string) revert
-
standardPanic: object
standardPanic
Decoded Panic(uint256) revert
Nested Schema : customError
Type:
objectDecoded custom error as defined in the contract ABI
Show Source
Nested Schema : standardError
Type:
objectDecoded standard Error(string) revert
Show Source
-
message: string
Revert message string
-
selector: string
Example:
0x08c379a0
Nested Schema : standardPanic
Type:
objectDecoded Panic(uint256) revert
Show Source
-
code: string
Panic code value (hex or decimal string)
-
meaning: string
Human-readable interpretation of the panic code, when known
-
selector: string
Example:
0x4e487b71
Nested Schema : DecodedArgument
Type:
Show Source
object-
indexed: boolean
Only for event parameters
-
name: string
May be empty if unknown
-
type: string
Canonical ABI type (for example, uint256, address, (uint256,address), uint256[])
-
value:
Normalized JSON value (address lowercase hex, bigints as decimal strings, bytes as 0x-hex)
502 Response
Upstream Besu error
Root Schema : ErrorResponse
Type:
Show Source
object-
decodedError: object
DecodedError
-
error: string
Short error summary suitable for display
-
hint: string
Optional guidance that may help resolve the error
-
message: string
Additional error details, when available
-
requestId: string
Client-provided correlation ID echoed in responses
-
upstreamCode: integer
Upstream node error code (if provided by the RPC endpoint)
-
upstreamData: string
Raw upstream error data payload (0x-hex or JSON), if available
Nested Schema : DecodedError
Type:
Show Source
object-
customError: object
customError
Decoded custom error as defined in the contract ABI
-
standardError: object
standardError
Decoded standard Error(string) revert
-
standardPanic: object
standardPanic
Decoded Panic(uint256) revert
Nested Schema : customError
Type:
objectDecoded custom error as defined in the contract ABI
Show Source
Nested Schema : standardError
Type:
objectDecoded standard Error(string) revert
Show Source
-
message: string
Revert message string
-
selector: string
Example:
0x08c379a0
Nested Schema : standardPanic
Type:
objectDecoded Panic(uint256) revert
Show Source
-
code: string
Panic code value (hex or decimal string)
-
meaning: string
Human-readable interpretation of the panic code, when known
-
selector: string
Example:
0x4e487b71
Nested Schema : DecodedArgument
Type:
Show Source
object-
indexed: boolean
Only for event parameters
-
name: string
May be empty if unknown
-
type: string
Canonical ABI type (for example, uint256, address, (uint256,address), uint256[])
-
value:
Normalized JSON value (address lowercase hex, bigints as decimal strings, bytes as 0x-hex)
Examples