eth_simulateV1

Executes a sequence of message calls building on each other's state without creating transactions on the block chain, optionally overriding block and state data

https://api.1inch.com/web3/1
Supported on:
Ethereum

Parameters

Payload (required)

Payload
* any
blockStateCalls
* array
blockOverrides
object
number
string
prevRandao
string
time
string
gasLimit
string
feeRecipient
string
baseFeePerGas
string
withdrawals
array
items
any
blobBaseFee
string
stateOverrides
object
additionalProperties
none
calls
array
items
object
type
string
nonce
string
to
string
from
string
gas
string
value
string
input
string
gasPrice
string
maxPriorityFeePerGas
string
maxFeePerGas
string
maxFeePerBlobGas
string
accessList
array
items
object
address
* string
storageKeys
* array
items
string
additionalProperties
none
blobVersionedHashes
string
traceTransfers
boolean
validation
boolean
returnFullTransactions
boolean

Block tag

default: 'latest'

Block tag
any
anyOf[0]
string
anyOf[1]
string (Enum)
earliest
finalized
safe
latest
pending
anyOf[2]
string

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
any
oneOf[0]
any
blockStateCalls
* array
blockOverrides
object
number
string
prevRandao
string
time
string
gasLimit
string
feeRecipient
string
baseFeePerGas
string
withdrawals
array
items
any
blobBaseFee
string
stateOverrides
object
additionalProperties
none
calls
array
items
object
type
string
nonce
string
to
string
from
string
gas
string
value
string
input
string
gasPrice
string
maxPriorityFeePerGas
string
maxFeePerGas
string
maxFeePerBlobGas
string
accessList
array
items
object
address
* string
storageKeys
* array
items
string
additionalProperties
none
blobVersionedHashes
string
traceTransfers
boolean
validation
boolean
returnFullTransactions
boolean
oneOf[1]
any
anyOf[0]
string
anyOf[1]
string (Enum)
earliest
finalized
safe
latest
pending
anyOf[2]
string
id
* number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/1', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${API_KEY}`,
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_simulateV1',
    params: ['string'],
    id: 1,
  }),
});

const data = await response.json();
console.log(data);

Response

Result of calls

Result of calls
object
oneOf[0]
object
error
* any
oneOf[0]
any
oneOf[1]
any
oneOf[2]
any
oneOf[3]
any
oneOf[4]
any
oneOf[5]
any
oneOf[6]
any
oneOf[7]
any
oneOf[8]
any
oneOf[9]
any
oneOf[10]
any
oneOf[11]
any
oneOf[12]
any
oneOf[13]
any
oneOf[14]
any
oneOf[15]
any
oneOf[16]
any
oneOf[17]
any
oneOf[18]
any
oneOf[1]
array
items
object
hash
* string
parentHash
* string
sha3Uncles
* string
miner
* string
stateRoot
* string
transactionsRoot
* string
receiptsRoot
* string
logsBloom
* string
difficulty
string
number
* string
gasLimit
* string
gasUsed
* string
timestamp
* string
extraData
* string
mixHash
* string
nonce
* string
baseFeePerGas
string
withdrawalsRoot
string
blobGasUsed
string
excessBlobGas
string
parentBeaconBlockRoot
string
size
* string
transactions
* any
anyOf[0]
array
items
string
anyOf[1]
array
items
object
oneOf[0]
object
type
* string
nonce
* string
to
* string
gas
* string
value
* string
input
* string
maxPriorityFeePerGas
* string
maxFeePerGas
* string
gasPrice
string
accessList
* array
items
object
address
* string
storageKeys
* array
items
string
additionalProperties
none
chainId
* string
authorizationList
* array
items
object
chainId
* string
nonce
* string
address
* string
yParity
* string
r
* string
s
* string
yParity
* string
v
string
r
* string
s
* string
oneOf[1]
object
type
* string
nonce
* string
to
* string
gas
* string
value
* string
input
* string
maxPriorityFeePerGas
* string
maxFeePerGas
* string
maxFeePerBlobGas
* string
gasPrice
string
accessList
* array
items
object
address
* string
storageKeys
* array
items
string
additionalProperties
none
blobVersionedHashes
* array
items
string
chainId
* string
yParity
* string
v
string
r
* string
s
* string
oneOf[2]
object
type
* string
nonce
* string
to
any
oneOf[0]
null
oneOf[1]
string
gas
* string
value
* string
input
* string
maxPriorityFeePerGas
* string
maxFeePerGas
* string
gasPrice
* string
accessList
* array
items
object
address
* string
storageKeys
* array
items
string
additionalProperties
none
chainId
* string
yParity
* string
v
string
r
* string
s
* string
oneOf[3]
object
type
* string
nonce
* string
to
any
oneOf[0]
null
oneOf[1]
string
gas
* string
value
* string
input
* string
gasPrice
* string
accessList
* array
items
object
address
* string
storageKeys
* array
items
string
additionalProperties
none
chainId
* string
yParity
* string
v
string
r
* string
s
* string
oneOf[4]
object
type
* string
nonce
* string
to
any
oneOf[0]
null
oneOf[1]
string
gas
* string
value
* string
input
* string
gasPrice
* string
chainId
string
v
* string
r
* string
s
* string
blockHash
* string
blockNumber
* string
from
* string
hash
* string
transactionIndex
* string
withdrawals
array
items
object
index
* string
validatorIndex
* string
address
* string
amount
* string
additionalProperties
none
uncles
* array
items
string
requestsHash
string
additionalProperties
none

Did you find what you need?