EVM Methods

eth_subscribe

Subscribe to different Ethereum event types like newHeads, logs, pendingTransactions, and minedTransactions using WebSockets.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"jsonrpc":"2.0","id": 2, "method": "eth_subscribe", "params": []}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 2,
    "error": {
        "code": -32602,
        "message": "expected subscription name as first argument"
    }
}

eth_unsubscribe

Unsubscribe from different Ethereum event types with a regular RPC call with eth_unsubscribe as the method and the subscriptionId as the first parameter.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32602,
        "message": "missing value for required argument 0"
    }
}

eth_chainId

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_blockNumber

Returns the number of most recent block.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_call

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

wss://avax.nownodes.io/wss/{{api-key}}

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.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_gasPrice

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_getBalance

Returns the balance of the account of given address.

wss://avax.nownodes.io/wss/{{api-key}}

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.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_getBlockByNumber

Returns information about a block by block number.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockExtraData": "0x",
        "difficulty": "0x1",
        "extDataHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "extraData": "0xd883010916846765746888676f312e31342e39856c696e7578b6a7bff2f7cd4e8c1eda153f001c3e5fdd69c26c1afc3cff3974886e782ff045",
        "gasLimit": "0x3e4985c",
        "gasUsed": "0xcbec",
        "hash": "0x8ba0b60cee01c4a42e687596808b0332e34c7c2371b768641efe58f89e6c41c2",
        "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000010000000000000000000000000000000000008400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080002000000000000000000000000000000000",
        "miner": "0x0100000000000000000000000000000000000000",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": "0x1b4",
        "parentHash": "0x04d1ccba421361c2ac227fef90be045be530b71fe486612a0250d82e40a6d102",
        "receiptsRoot": "0x3982c4136a5bda4bab50002cc86af568e308e48edae4c4705263d511cd78dc0c",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0x510",
        "stateRoot": "0x48a171ad566e60dfce51d37f29a10e22222057accd9bd7ba372461773af09b52",
        "timestamp": "0x5f9b2727",
        "totalDifficulty": "0x1b4",
        "transactions": [
            {
                "blockHash": "0x8ba0b60cee01c4a42e687596808b0332e34c7c2371b768641efe58f89e6c41c2",
                "blockNumber": "0x1b4",
                "from": "0x4abef613822fb2031d897e792f89c896ddafc466",
                "gas": "0xcbec",
                "gasPrice": "0x6d6e2edc00",
                "hash": "0x7c2e516fc905d7b239629697c2d41784a7be1f3dac11f4ee6b655619e664cd3e",
                "input": "0x89486bad72396f4539487877377366323356593572456b32663869317a000000000000004f6e7572204f7a6b616e202f204d61737465724e6f64650000000000000000004c696e6b6564696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000001668747470733a2f2f6269742e6c792f336c566474596f0000000000000000000000000000000000000000000000000000000000000000000000000000000000b14e6f64652053706563696669636174696f6e730a4350553a2031322043505573207820496e74656c2852292058656f6e28522920435055205835363730204020322e393347487a0a52414d3a20313238204742204543430a53746f726167653a20313030474220535344202852414944203529202d20657870616e6461626c6520746f2033343047420a36204b576820555053202f203530204b576820506f77657220506c616e740a4669726577616c6c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f7777772e6c696e6b6564696e2e636f6d2f696e2f6f6e75722d6f7a6b616e2f00000000000000000000000000000000000000000000000000",
                "nonce": "0x6b",
                "to": "0x95042281af6566fc6748f28263ceeecaefb4d2b4",
                "transactionIndex": "0x0",
                "value": "0x0",
                "type": "0x0",
                "chainId": "0xa86a",
                "v": "0x150f8",
                "r": "0x90b65eea8d4c900ec5161da4d231241fbf971c7ef8714595eb5d6cec68b9694d",
                "s": "0x691ff781a43ea04f700d26b8e8d0dbccd6d367b79c798b2f345c9b67f0390390"
            }
        ],
        "transactionsRoot": "0x13be6179c3e234a1da1d93748cd8b035d5e638f43a8ee5ea593dce425f1eb9f4",
        "uncles": []
    }
}

eth_getBlockTransactionCountByHash

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_getBlockTransactionCountByNumber

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_getCode

Returns code at a given address.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_getFilterChanges

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 73,
    "error": {
        "code": -32000,
        "message": "filter not found"
    }
}

eth_getFilterLogs

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 74,
    "error": {
        "code": -32000,
        "message": "filter not found"
    }
}

eth_getLogs

Returns an array of all logs matching a given filter object.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"topics":["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b"]}],"id":74}

Example response: 200

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

eth_getStorageAt

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_getTransactionByBlockHashAndIndex

Returns information about a transaction by block hash and transaction index position.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getTransactionByBlockHashAndIndex","params":["0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b", "0x0"],"id":1}

Example response: 200

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

eth_getTransactionByBlockNumberAndIndex

Returns information about a transaction by block number and transaction index position.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getTransactionByBlockNumberAndIndex","params":["0x29c", "0x0"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0x9f4a279646f77ae46ca7df63b4f31d09ef0d0e9bf33cfba52b21ccf980aa8cfe",
        "blockNumber": "0x29c",
        "from": "0x4abef613822fb2031d897e792f89c896ddafc466",
        "gas": "0x4057e",
        "gasPrice": "0x6d6e2edc00",
        "hash": "0xc1ff83cfe18bda60bc8a867bfe6c1b3a20cf2c59e0cbecdb6360f7a087d56142",
        "input": "0x89486bad576e6d624d59365573573535797a436d5a62544a6b6459695700000000000000416c6c6e6f646573202f204465787465726f757320476f6c6466696e63680000416c6c6e6f64657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000001668747470733a2f2f6269742e6c792f337135614d47430000000000000000000000000000000000000000000000000000000000000000000000000000000000294d61737465726e6f6465732c2046756c6c204e6f6465732c205374616b696e672053657276696365730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004568747470733a2f2f7777772e616c6c6e6f6465732e636f6d2f3f75746d5f736f757263653d7673636f75742675746d5f6d656469756d3d76616c696461746f722d6c697374000000000000000000000000000000000000000000000000000000",
        "nonce": "0xef",
        "to": "0x95042281af6566fc6748f28263ceeecaefb4d2b4",
        "transactionIndex": "0x0",
        "value": "0x0",
        "type": "0x0",
        "chainId": "0xa86a",
        "v": "0x150f7",
        "r": "0xfb4fa8ce6ff4a923856ccd5d66e682bd6383c813e0e6da49be3d260bf40d3245",
        "s": "0x2156e53641c59a1f603b758acc4994472bf15634d912b2153b3a64c849de4e6a"
    }
}

eth_getTransactionByHash

Returns the information about a transaction requested by transaction hash.

wss://avax.nownodes.io/wss/{{api-key}}

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.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_getUncleByBlockHashAndIndex

Returns information about a uncle of a block by hash and uncle index position.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getUncleByBlockHashAndIndex","params":["0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b","0x0"],"id":1}

Example response: 200

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

eth_getUncleByBlockNumberAndIndex

Returns information about a uncle of a block by number and uncle index position.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getUncleByBlockNumberAndIndex","params":["0x29c", "0x0"],"id":1}

Example response: 200

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

eth_getUncleCountByBlockHash

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"jsonrpc":"2.0","method":"eth_getUncleCountByBlockHash","params":["0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b"],"id":1}

Example response: 200

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

eth_getUncleCountByBlockNumber

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_newBlockFilter

Creates a filter in the node, to notify when a new block arrives.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_newFilter

Creates a filter object, based on filter options, to notify when the state changes (logs).

Method: POST

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"jsonrpc":"2.0","method":"eth_newFilter","params":[{ "fromBlock": "0x1", "toBlock": "0x2", "address": "0x8888f1f195afa192cfee860698584c030f4c9db1", "topics": ["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b", null, ["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b", "0x0000000000000000000000000aff3454fce5edbc8cca8697c15331677e6ebccc"]] }],"id":73}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 73,
    "result": "0xcee1fa075b18c4fd1b8e58fe6bbc9594"
}

eth_newPendingTransactionFilter

Creates a filter in the node, to notify when new pending transactions arrive.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_pendingTransactions

Creates a filter in the node, to notify when new pending transactions arrive.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_sendRawTransaction

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "rlp: element is larger than containing list"
    }
}

eth_sendTransaction

Creates new message call transaction or a contract creation, if the data field contains code.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{ "id": 1, "jsonrpc": "2.0", "method": "eth_sendTransaction", "params": [{ "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675" }] }

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "unknown account"
    }
}

eth_sign

The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))).

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"jsonrpc":"2.0","method":"eth_sign","params":["0x9b2055d370f73ec7d8a03e965129118dc8f5bf83", "0xdeadbeaf"],"id":1}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "unknown account"
    }
}

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.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_uninstallFilter

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

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_createAccessList

Returns list of addresses and storage keys that are read and written by the transaction (except the sender account and precompiles), plus the estimated gas consumed when the access list is added.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"id": 1,"jsonrpc": "2.0","method": "eth_createAccessList","params": [{"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567","gas": "0x0","gasPrice": "0x9184e72a000","value": "0x0","data": "0x"}]}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "failed to apply transaction: 0x295daf8de677ee7e46bc6776b7608cb9d9f7b1550145f6228dd636e6e203492c err: intrinsic gas too low: have 0, want 21000"
    }
}

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.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

eth_feeHistory

Returns a collection of historical gas information.

wss://avax.nownodes.io/wss/{{api-key}}

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": -32602,
        "message": "invalid argument 1: hex string without 0x prefix"
    }
}

eth_getProof

Returns the account and storage values of the specified accoun.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"id": 1,"jsonrpc": "2.0","method": "eth_getProof","params": ["0xe5cB067E90D5Cd1F8052B83562Ae670bA4A211a8"]}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32602,
        "message": "missing value for required argument 1"
    }
}

eth_coinbase

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "eth_coinbase",
    "params": [],
    "id": 64
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 64,
    "result": "0x0100000000000000000000000000000000000000"
}

eth_signTransaction

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_signTransaction",
    "params": [
        {
            "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",
            "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155",
            "gas": "0x76c0",
            "gasPrice": "0x9184e72a000",
            "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
            "value": "0x9184e72a"
        }
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "nonce not specified"
    }
}

eth_sign

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "eth_sign",
    "params": [
        "0x9b2055d370f73ec7d8a03e965129118dc8f5bf83",
        "0xdeadbeaf"
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "unknown account"
    }
}

net_version

Returns the current network id.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

net_listening

Returns true if client is actively listening for network connections.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

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

net_peerCount

Returns the number of peers currently connected to the client.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "net_peerCount",
    "params": [],
    "id": 74
}

Example response: 200

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

web3_clientVersion

Get the web3 client version.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "v0.13.2"
}

web3_sha3

Returns Keccak-256 (not the standardized SHA3-256) of the given data.

wss://avax.nownodes.io/wss/{{api-key}}

Example body (raw)

{"jsonrpc":"2.0","method":"web3_sha3","params":["0x67656c6c6f20776f726c64"],"id":1}

Example response: 200

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

Last updated