Skip to main content

/api/v1/contracts/call REST API Endpoint

Invoke a smart contract

Updated on
Dec 18, 2024

Body Parameters

block
string

The hexadecimal block number or the string 'latest', 'pending', 'earliest'. Defaults to 'latest'

data
integer

Hexadecimal method signature and encoded parameters. Up to 24656 bytes as at most 49152 hexidecimal digits plus optional leading 0x

estimate
boolean

Whether gas estimation is called. Defaults to false

from
string

The 20-byte hexadecimal EVM address the transaction is sent from

gas
integer

The gas provided for the transaction execution. Defaults to 15000000

gasPrice
integer

The gas price used for each paid gas

to
string
REQUIRED

The 20-byte hexadecimal EVM address the transaction is directed to

value
integer

The value sent with this transaction. Defaults to 0

Returns

result
string

The result in hexadecimal from the executed contract call.

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free