Geth/Parity Proxy

Visit the official Ethereum JSON-RPC documentation for the full documentation of available parameters and descriptions.

eth_blockNumber

Returns the number of most recent block.

GET http://scan.wemix.com/api/proxy?action=eth_blockNumber

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

Response

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

eth_getBlockByNumber

Returns information about a block by block number.

GET http://scan.wemix.com/api/proxy?action=eth_getBlockByNumber

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

tag

hex

the block number, in hex eg. 0xC36B3C

boolean

true | false

the boolean value to show full transaction objects.

When true, returns full transaction objects and their information, when false only returns a list of transactions.

Example:

http://scan.wemix.com/api/proxy?action=eth_getBlockByNumber&tag=0x549a5d4&boolean=false

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "baseFeePerGas": "0x1",
        "difficulty": "0x1",
        "extraData": "0x6777656d69782f76302e31302e31302f6c696e75782f676f312e31392e3133",
        "fees": "0x47884fe0b1d000",
        "gasLimit": "0x6422c40",
        "gasUsed": "0x31282",
        "hash": "0xc6d7c0f506fb9a0c6a85cdfaa465ca57b2056119542b8d10392906cb846938ab",
        "logsBloom": "0x80000010000000004000000000000000200000000200000000010000000000000000000002000000000000000000000000000000000000000000008000200000000000000000000000000118001000000000400000000000000400000000000500000000000000000000000000000000000000000000000000000010000000000000000040000000000000000000000000001001000000002000000000080000020000000000000000000008000000000001000000010020000001100000000020000002000000000000000000000000000000000000200000000000020000000010004001000000000000400060100000000001000000000000000000000000",
        "miner": "0x5eff08c64992ea745c532ea776c1b61f3af0c2d3",
        "minerNodeId": "0x",
        "minerNodeSig": "0x56207b358c19cab5e11a4c8575ea1afc67ae70abe1c8b3cc36167907e2398f4a0c498571e57536caebf427b62f47598d9ef364b607b5e6d675ad4cd6b0952fdf01",
        "mixHash": "0x0b3ef2f03dee8df0347a8aef579cb67a97bf4b1f63d4709a8edf2ff1311defa9",
        "nonce": "0x6a261374c1a5551b",
        "number": "0x549a5d4",
        "parentHash": "0x2c9ff36baf3891f3f46771144bac694d2374764f123442645d552c5ae473a533",
        "receiptsRoot": "0x2ba339b284a4622dbbe6ddc1354182199bb76fe69b63df85a917a75c32bcaf77",
        "rewards": "0x5b7b2261646472223a22307835656666303863363439393265613734356335333265613737366331623631663361663063326433222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307839366464363937313132353633396337666233333631383964323864343830343966306432623663222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307862363433313966336363336136626230336166303035653330363732343638613137343862626336222c22726577617264223a343437303130363936373135383339377d2c7b2261646472223a22307862383037663735343937636236333064386132626334396535386632316135616264353536376237222c22726577617264223a343836343039363434343439373939327d2c7b2261646472223a22307832653839663165656462326539326430353533636632366238346666326633343664356565363839222c22726577617264223a343432303631303836393132383736327d2c7b2261646472223a22307833383931633361326163376136666463616534663464353230333837623735626434366239326363222c22726577617264223a343432303032303937363931333334377d2c7b2261646472223a22307836333733633464373734313461303137663736373132303834306633623365643030383638636465222c22726577617264223a373030373935303630363237343035367d2c7b2261646472223a22307866373737386163353735383366383862303261383439353134613966656563626136353336663331222c22726577617264223a343434303833323735323830373838327d2c7b2261646472223a22307830316330653662306430396136353030633739346537366535636435333665303231386266383663222c22726577617264223a343431393936313836343337303530387d2c7b2261646472223a22307837326262663333623666353332303333356339306665366662623832366135323236376437653433222c22726577617264223a343431393936313836343337303530387d2c7b2261646472223a22307863383366373538613662356432363530656635656162393139666365323435646430346363386464222c22726577617264223a343433333637333431313833353735367d2c7b2261646472223a22307833666231633365613935663633386233393664353035616261323232666461313733356462363764222c22726577617264223a343431393936353430303334303239347d2c7b2261646472223a22307836656331343936363438306533626166346336326131663435333263393563343262303762396339222c22726577617264223a343431393936313836343337303530387d2c7b2261646472223a22307862656535353735373165373763373865383063356264356339636563396635626533663564636636222c22726577617264223a343432373036393832393634333937317d2c7b2261646472223a22307830383861636663643931616565623339666639616462633066356235633336373439643839666561222c22726577617264223a343431393939393535383936323330357d2c7b2261646472223a22307836333963356264613334393536373631303939353435646637636135343638316137333233386531222c22726577617264223a343538333132373439333739333337387d2c7b2261646472223a22307834636637383261643231613963303965316462623864313634336365316534306565376635353531222c22726577617264223a343431393938303336393437383934377d2c7b2261646472223a22307832633337653633353563343732393338393737383633346538656338656137346539393561343733222c22726577617264223a343431393936323135393033343633337d2c7b2261646472223a22307839363934363831323435653233613537646565393034633830373938373461333964646238323832222c22726577617264223a343431393936313836343337303530387d2c7b2261646472223a22307834356135336533373238623035353935353761333831383735663836666561313731303435373462222c22726577617264223a343432303437303939373938383236377d2c7b2261646472223a22307833313866653133646632366661336130646661376236336131616162373761363830643766613036222c22726577617264223a31333838333038343936383635313934377d2c7b2261646472223a22307838363639653439616439643365323636636563393366643435393931346338363064393433323934222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307833643266323336626131623731663632343064356232363234646235616232653665376138363662222c22726577617264223a343431393936343831313031313735327d2c7b2261646472223a22307865383062356532636333326333356435333639363338333534616331663962366531326633353731222c22726577617264223a343431393936353131383637333036327d2c7b2261646472223a22307839346634316231613365663231346463393730633338373031393462336132363261356539623635222c22726577617264223a343435333837303031323030363130337d2c7b2261646472223a22307863376532663566353864353737316537663633616564373230346365623131626237623737306261222c22726577617264223a343433313738303238363635313230387d2c7b2261646472223a22307830346362633832326138316234666265303361326262366438653136626536376137656235353962222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307830366264373837333334313966643961653538386231303964383236326266393832363062373235222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307836383938343561393736366263656537306538393735326161376666373537303361633362383661222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307866363365663434326537393966306566663830636639636463353235336539656563616266366338222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307862393664616532613462636666633132303435383435303734393565636133323162636538393161222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307837663738336563636666333333336261633932346331303062303837303032316430316661666164222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307838326162643532616332623935623338376263643562643139353063316265656435656435363033222c22726577617264223a343431393937333739373537313034357d2c7b2261646472223a22307832373233333665303365326262333033336135323637633538333533383166353132653732336537222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307835323661663264653338616262636665316339393564623637646436333634626435353539326537222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307835306337666132663736353365336562333662623436353062663433353062383637346166616431222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307835636530356264323033373934656362393434373266343961336136386131643832363631376332222c22726577617264223a3236373630393431393438383537323239367d2c7b2261646472223a22307864333038353138646231366630323566646239623862336661393361366536316230396638353037222c22726577617264223a343431393936383334373138333639357d2c7b2261646472223a22307862393562323934636664383361366234623031656534633334373034343032333462626636313262222c22726577617264223a343431393936313836343337303530397d2c7b2261646472223a22307839383733396336343130353938666332313930366230353733643465323861306238616464306265222c22726577617264223a35313633343735333633373532323235367d2c7b2261646472223a22307831333933626261326639306665346430343062663730633234313833646436653237323734646535222c22726577617264223a307d2c7b2261646472223a22307863373964353335663665646433653066613634386436313639656135623865316161333839323165222c22726577617264223a307d2c7b2261646472223a22307831363230636634626435373038373233363032353531366364643864373065313237646135333331222c22726577617264223a307d2c7b2261646472223a22307861616638373531306562383330306330383561656537663838363033343130616165656466666435222c22726577617264223a32303133343630303030303030303030307d5d",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0x122a",
        "stateRoot": "0xcbb06251afc0e500121c2e7b7e958cac124fccfe2fff0f03dc079bb487c74e5a",
        "timestamp": "0x689a5d0a",
        "totalDifficulty": "0x549a5d5",
        "transactions": [
            "0xcd3fe2102534115f384142299b74d23a9aa9d426ddffae67af3bd5fcbc70bfe7"
        ],
        "transactionsRoot": "0xada10ee3c3467b64c5f1ad010794e2cf888752491ec261a9513a992b47fcfa97",
        "uncles": []
    }
}

eth_getBlockTransactionCountByNumber

Returns the number of transactions in a block.

GET http://scan.wemix.com/api/proxy?action=eth_getBlockTransactionCountByNumber

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

tag

hex

the block number, in hex eg. 0xC36B3C

Example:

http://scan.wemix.com/api/proxy?action=eth_getBlockTransactionCountByNumber&tag=0x549a5d4

Response

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

eth_getTransactionByHash

Returns the information about a transaction requested by transaction hash.

GET http://scan.wemix.com/api/proxy?action=eth_getTransactionByHash

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

txhash

string

hash of the transaction

Example:

http://scan.wemix.com/api/proxy?action=eth_getTransactionByHash&txhash=0xf4d4f850865d866b388af5b791a8736ddbe7daf246b95a4f49afd955abca5088

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0xe3ecce783c89086d0aa8b59d464265628bca467ac6bd81d3a178c5d3523b6584",
        "blockNumber": "0x54be944",
        "from": "0x6c7157fe705ae3f5506fa5df13ef7575de1a7964",
        "gas": "0x16e360",
        "gasPrice": "0x174876e801",
        "maxFeePerGas": "0x174876e801",
        "maxPriorityFeePerGas": "0x174876e801",
        "hash": "0xf4d4f850865d866b388af5b791a8736ddbe7daf246b95a4f49afd955abca5088",
        "input": "0xa9059cbb000000000000000000000000c90738f97c8c2e34814ded7416c301fd7b689c56000000000000000000000000000000000000000000000002017a67f731740000",
        "nonce": "0x13",
        "to": "0x732e6973595136976173af4a56eac99f52becc6e",
        "transactionIndex": "0x0",
        "value": "0x0",
        "type": "0x2",
        "accessList": [],
        "chainId": "0x457",
        "v": "0x0",
        "r": "0x7bda0a8540d8d513edf19bee9cd897ffc3ad23dc9065f1dc96acb58b21a077f",
        "s": "0x45ecb3c86311c70ef62f86829f7312e73eae6a20409195c71853ea274ca57714"
    }
}

eth_getTransactionByBlockNumberAndIndex

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

GET http://scan.wemix.com/api/proxy?action=eth_getTransactionByBlockNumberAndIndex

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

tag

hex

the block number, in hex eg. 0x10FB78

index

hex

the position of the uncle's index in the block, in hex eg. 0x0

Example:

http://scan.wemix.com/api/proxy?action=eth_getTransactionByBlockNumberAndIndex&index=0x0&tag=0x549a5d4

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0xc6d7c0f506fb9a0c6a85cdfaa465ca57b2056119542b8d10392906cb846938ab",
        "blockNumber": "0x549a5d4",
        "from": "0x37efb9b4a2636e4a0e06c70794cca84e41472bb7",
        "gas": "0x6a3b0",
        "gasPrice": "0x174876e801",
        "maxFeePerGas": "0x174876e802",
        "maxPriorityFeePerGas": "0x174876e800",
        "hash": "0xcd3fe2102534115f384142299b74d23a9aa9d426ddffae67af3bd5fcbc70bfe7",
        "input": "0xd4d4e3a900000000000000000000000029b440f80fd4be4d0acfb5f14aeafd5dcbf371b14d49523400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000037efb9b4a2636e4a0e06c70794cca84e41472bb70000000000000000000000000000000000000000000000013f306a2409fc000045786368616e6765546f546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412b62e5c96c819aa580f98109a990d46ee3c956ed33110b5056c626d419a3cc83128652213c6077af87f31e053b04c40974c447a7e82843bd053ea924ea7b6fce1b00000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x3e",
        "to": "0x7b4503a5e403fedb6819b39f229565028c57e388",
        "transactionIndex": "0x0",
        "value": "0x0",
        "type": "0x2",
        "accessList": [],
        "chainId": "0x457",
        "v": "0x0",
        "r": "0x3c1b9bdb0f235eeb4c5418590ae5e2f2587c0a3f444f781bb377cc270125c3e5",
        "s": "0x52040e7b9cd1aa98f519ebafaed26971368197c6b554bef756a1fd3b279aa6d1"
    }
}

eth_getTransactionCount

Returns the number of transactions performed by an address.

GET http://scan.wemix.com/api/proxy?action=eth_getTransactionCount

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

tag

hex

the block number, in hex eg. 0x10FB78

address

string

the string representing the address to get transaction count

Example:

http://scan.wemix.com/api/proxy?action=eth_getTransactionCount&tag=latest&address=0x5eff08c64992ea745c532ea776c1b61f3af0c2d3

Response

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

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

GET http://scan.wemix.com/api/proxy?action=eth_getTransactionReceipt

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

txhash

string

the string representing the hash of the transaction

Example:

http://scan.wemix.com/api/proxy?action=eth_getTransactionCount&tag=latest&address=0x5eff08c64992ea745c532ea776c1b61f3af0c2d3

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0xf722ade016c3c0b5d18031f724ad4a040c97fa1afc6aa5dd90be2b3e0a99faca",
        "blockNumber": "0x54a2421",
        "contractAddress": null,
        "cumulativeGasUsed": "0xc00e",
        "effectiveGasPrice": "0x178411b200",
        "from": "0x5eff08c64992ea745c532ea776c1b61f3af0c2d3",
        "gasUsed": "0xc00e",
        "logs": [],
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "status": "0x1",
        "to": "0xa57e414d3ed11aa9f93af99b867316346a3b2b2d",
        "transactionHash": "0x1f4b2ad887a72ad83eeccf53cc0e3a5cf94fb12552c8c6e42ecc2ca05455211c",
        "transactionIndex": "0x0",
        "type": "0x0"
    }
}

Last updated