Skip to content

Instantly share code, notes, and snippets.

@sambacha
Created March 31, 2024 17:39
Show Gist options
  • Save sambacha/03628b9435fbce2f9c2112c1918a1fee to your computer and use it in GitHub Desktop.
Save sambacha/03628b9435fbce2f9c2112c1918a1fee to your computer and use it in GitHub Desktop.

Anvil RPC Methods

anvil_impersonateAccount
anvil_stopImpersonatingAccount
anvil_autoImpersonateAccount
anvil_getAutomine
anvil_mine
anvil_dropTransaction
anvil_reset
anvil_setChainId
anvil_setBalance
anvil_setCode
anvil_setNonce
anvil_setStorageAt
anvil_setLoggingEnabled
anvil_setMinGasPrice
anvil_setNextBlockBaseFeePerGas
anvil_setCoinbase
anvil_dumpState
anvil_loadState
anvil_nodeInfo
anvil_metadata
anvil_setBlockTimestampInterval
anvil_removeBlockTimestampInterval
anvil_setBlock
anvil_setRpcUrl
anvil_enableTraces

ots_getBlockTransactions
ots_searchTransactionsBefore
ots_searchTransactionsAfter
ots_getTransactionBySenderAndNonce
ots_getApiLevel
ots_getContractCreator
ots_getApiLevel
ots_getInternalOperations
ots_hasCode
ots_traceTransaction
ots_getTransactionError
ots_getBlockDetails
ots_getBlockDetailsByHash

eth_createAccessList
eth_estimateGas
eth_getTransactionByHash
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getTransactionReceipt
eth_getBlockReceipts
eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex
eth_getLogs
eth_getWork
eth_syncing
eth_submitWork
eth_submitHashrate
eth_feeHistory
eth_maxPriorityFeePerGas
eth_newFilter
eth_newBlockFilter
eth_newPendingTransactionFilter
eth_getFilterChanges
eth_getFilterLogs
eth_uninstallFilter
eth_sendUnsignedTransaction
eth_protocolVersion
eth_hashrate
eth_coinbase
eth_mining
eth_chainId
eth_networkId
eth_gasPrice
eth_accounts
eth_blockNumber
eth_getBalance
eth_getStorageAt
eth_getBlockByHash
eth_getBlockByHash
eth_getBlockByNumber
eth_getBlockByNumber
eth_getTransactionCount
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber
eth_getCode
eth_getProof
eth_signTypedData
eth_signTypedData_v3
eth_signTypedData_v4
eth_sign
eth_signTransaction
eth_sendTransaction
eth_sendRawTransaction
eth_call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment