EVM methods

eth_accounts

Returns array of all accounts owned by the client.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc": "2.0", "method": "eth_accounts", "id": 1, "params": []}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": []
}

eth_chainId

Returns the currently configured chain ID, a value used in replay-protected transaction signing as introduced by EIP-155.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{ "id": 1,"jsonrpc": "2.0","method": "eth_chainId" }

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "0x13a",
    "id": 1
}

eth_blockNumber

Returns the number of most recent block.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc": "2.0", "method": "eth_blockNumber", "id": 1, "params": []}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "0x3af634",
    "id": 1
}

eth_call

Executes a new message call immediately without creating a transaction on the block chain.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_call","params":[{ "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567" }, "latest"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x"
}

eth_estimateGas

Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_estimateGas","params":[{ "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567" }, "latest"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "0x5d97bc",
    "id": 1
}

eth_gasPrice

Returns the current gas price in the default EVM denomination parameter.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc": "2.0", "method": "eth_gasPrice", "id": 1, "params": []}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "0x30bb3",
    "id": 1
}

eth_getBalance

Returns the balance of the account of given address.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x0"
}

eth_getBlockByHash

Returns information about a block by hash.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getBlockByHash","params":["0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae", false],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": 1,
        "message": "error loading tipset <nil>: cannot find tipset with cid bafy2bzacedoaqggppdzbvdtqk6oli2sdmq7xqkismto2gqvogecjiioifuq24: ipld: could not find bafy2bzacedoaqggppdzbvdtqk6oli2sdmq7xqkismto2gqvogecjiioifuq24"
    }
}

eth_getBlockByNumber

Returns information about a block by block number.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x1b4", true],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": 1,
        "message": "failed to retrieve messages and receipts: error loading messages for tipset: [bafy2bzacecalpksny7yk4qaj4c4bc2d3s3grnf6sm4bdwqp42ihodhkuedcby bafy2bzaceatkh6ezlkjphxzl63dsfinjjeie6s7fa2h67hayrvgu37fgsobfc]: failed to load state tree at tipset [bafy2bzacecalpksny7yk4qaj4c4bc2d3s3grnf6sm4bdwqp42ihodhkuedcby bafy2bzaceatkh6ezlkjphxzl63dsfinjjeie6s7fa2h67hayrvgu37fgsobfc]: failed to load state tree bafy2bzacec4p6r22ycmt4ih4wcfknrfltdkbaxdqeb6dea4sqxzwvsur6vcuy: failed to load hamt node: ipld: could not find bafy2bzacec4p6r22ycmt4ih4wcfknrfltdkbaxdqeb6dea4sqxzwvsur6vcuy"
    }
}

eth_getBlockTransactionCountByHash

Returns the number of transactions in a block matching the given block hash.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByHash","params":["0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": 1,
        "message": "error loading tipset <nil>: cannot find tipset with cid bafy2bzacec4qgi47qvb5as25yg5gk6itfmkdbb6grwy3efuhqzai7s6ok2bdq: ipld: could not find bafy2bzacec4qgi47qvb5as25yg5gk6itfmkdbb6grwy3efuhqzai7s6ok2bdq"
    }
}

eth_getBlockTransactionCountByNumber

Returns the number of transactions in a block from a block matching the given block number.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByNumber","params":["0xe8"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": 1,
        "message": "error loading messages for tipset: [bafy2bzacednu5gtf42wsbnepiskeicqlbgky6vh6lkrrmlfg6u2cuqkwoffe2]: failed to load state tree at tipset [bafy2bzacednu5gtf42wsbnepiskeicqlbgky6vh6lkrrmlfg6u2cuqkwoffe2]: failed to load state tree bafy2bzacebntpq3ciilzhph3p3b5dbn2ikrxfpk7yoy5klk6tozrejetcfyeg: failed to load hamt node: ipld: could not find bafy2bzacebntpq3ciilzhph3p3b5dbn2ikrxfpk7yoy5klk6tozrejetcfyeg"
    }
}

eth_getCode

Returns code at a given address.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getCode","params":["0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "latest"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "0x",
    "id": 1
}

eth_getFilterChanges

Polling method for a filter, which returns an array of logs which occurred since last poll.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getFilterChanges","params":["0x16"],"id":73}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 73,
    "error": {
        "code": -32700,
        "message": "unmarshaling params for 'eth_getFilterChanges' (param: *ethtypes.EthFilterID): expected hex string length sans prefix 64, got 2"
    }
}

eth_getFilterLogs

Returns an array of all logs matching filter with given id.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getFilterLogs","params":["0x16"],"id":74}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 74,
    "error": {
        "code": -32700,
        "message": "unmarshaling params for 'eth_getFilterLogs' (param: *ethtypes.EthFilterID): expected hex string length sans prefix 64, got 2"
    }
}

eth_getStorageAt

Returns the value from a storage position at a given address.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0", "method": "eth_getStorageAt","params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x0", "latest"],"id": 1}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "id": 1
}

eth_getTransactionByHash

Returns the information about a transaction requested by transaction hash.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":["0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": null
}

eth_getTransactionCount

Returns the number of transactions sent from an address.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1","latest"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "0x0",
    "id": 1
}

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": 1,
        "message": "failed to lookup Eth Txn 0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238 as bafy2bzacec4qgi47qvb5as25yg5gk6itfmkdbb6grwy3efuhqzai7s6ok2bdq: failed to load message: ipld: could not find bafy2bzacec4qgi47qvb5as25yg5gk6itfmkdbb6grwy3efuhqzai7s6ok2bdq"
    }
}

eth_sendRawTransaction

Creates new message call transaction or a contract creation for signed transactions.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": 1,
        "message": "legacy transaction is not supported"
    }
}

eth_syncing

The sync status object may need to be different depending on the details of Tendermint's sync protocol. However, the 'synced' result is simply a boolean, and can easily be derived from Tendermint's internal sync state.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc": "2.0", "method": "eth_syncing", "id": 1, "params": []}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": false,
    "id": 1
}

eth_uninstallFilter

Uninstalls a filter with given id. Should always be called when watch is no longer needed.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0xb"],"id":73}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 73,
    "error": {
        "code": -32700,
        "message": "unmarshaling params for 'eth_uninstallFilter' (param: *ethtypes.EthFilterID): expected hex string length sans prefix 64, got 2"
    }
}

eth_maxPriorityFeePerGas

Returns a fee per gas that is an estimate of how much you can pay as a priority fee, or 'tip', to get a transaction included in the current block.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"id": 1,"jsonrpc": "2.0","method": "eth_maxPriorityFeePerGas"}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "0x31250",
    "id": 1
}

eth_feeHistory

Returns a collection of historical gas information.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"id": 1,"jsonrpc": "2.0","method": "eth_feeHistory","params": [4,4,4]}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": 1,
        "message": "decoding params: json: cannot unmarshal number into Go value of type []float64"
    }
}

eth_protocolVersion

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "eth_protocolVersion",
    "params": [],
    "id": 67
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "0x16",
    "id": 67
}

net_version

Returns the current network id.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc": "2.0", "method": "net_version", "id": 1, "params": []}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "314",
    "id": 1
}

net_listening

Returns true if client is actively listening for network connections.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "net_listening"
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": true,
    "id": 1
}

web3_clientVersion

Get the web3 client version.

Method: POST

https://fil.nownodes.io/rpc/v1

Example body (raw)

{"jsonrpc": "2.0", "method": "web3_clientVersion", "id": 1, "params": []}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "1.26.3+mainnet+git.7e4c4abb9",
    "id": 1
}

Last updated