For the full documentation of available parameters and descriptions, please visit the official Wemix JSON-RPC docs.
For compatibility with Parity , please prefix all hex strings with " 0x ".
eth_blockNumber
Returns the number of most recent block
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Sample response
Copy {
"jsonrpc":"2.0",
"result":"0x22b419e",
"id":83
}
eth_getBlockByNumber
Returns information about a block by block number.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0x22b419e
&boolean=true
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the block number, in hex eg. 0xC36B3C
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.
Sample response
Copy {
"jsonrpc":"2.0",
"id":1,
"result":{
"baseFeePerGas":"0x1",
"difficulty":"0x1",
"extraData":"0x6777656d69782f76302e31302e352f6c696e75782f676f312e32312e30",
"fees":"0x0",
"gasLimit":"0x6422c40",
"gasUsed":"0x0",
"hash":"0xa31cbf0766ccc37dbd89f635b3620c0c23a55e527823c93a89ca7f67bebf97c6",
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner":"0x66d8b8e51ffd91c5fa2ef35000e800d232b346fc",
"minerNodeId":"0x",
"minerNodeSig":"0x55e9f46575440e5af734942ee667ee0d52ce808be6dc00da133f7de944eda39d30b3f718bed7cd05d1b8f911a38625141d2b8741ba0defb7f8e462e4e980a1a400",
"mixHash":"0x811f2c7b5062e402fd8d4d8117fe8c67dec906ffb2de7ba90aaa1c5b774c7089",
"nonce":"0x20772d8c7a46e81c",
"number":"0x22b419e",
"parentHash":"0xe56cd73e0205c3aeaf0ec0ccff534a97f209728ed58bfa881f2e8f11ff1c6ac4",
"receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"rewards":"0x5b7b2261646472223a22307864653265393336313738636631303732333864643432373365316531383135666339343665333431222c22726577617264223a38343731343730323131363832393735347d2c7b2261646472223a22307838346665626438613230333361666533653839343264303166336562623530633430326531386337222c22726577617264223a393630353436303933313534373235317d2c7b2261646472223a22307838633339613832663363323938653435386265373538373835343136323962646661623038316539222c22726577617264223a33343734393737323531333937313637317d2c7b2261646472223a22307839366139383432333336366239323364373635366538656235353861303962656435373334653337222c22726577617264223a393539393938393934393632353335387d2c7b2261646472223a22307838646138303862623133346530393866633131376337383063633266346666653531343831306234222c22726577617264223a393630323137383630313432363738337d2c7b2261646472223a22307834316130636335363764356339326138306464323561653461643831336539306536343865303031222c22726577617264223a393630303732333339343532313232317d2c7b2261646472223a22307831353834343931343361343262353662653062643137613939636664303065393435643638323137222c22726577617264223a31303236343937353936323833353631357d2c7b2261646472223a22307836366438623865353166666439316335666132656633353030306538303064323332623334366663222c22726577617264223a31323831383832383534373837313038327d2c7b2261646472223a22307863303763616562333938643162336334333938353434316363343537343131373663333065356530222c22726577617264223a393539393437373938343239323430307d2c7b2261646472223a22307866386565323734323137303130373139303237633462633534376266346336613264323833643631222c22726577617264223a31303637303637333031363037363333317d2c7b2261646472223a22307864383064646634623437623636623034373136613531623733633736626535643236663134633930222c22726577617264223a393630303038303332353537333938357d2c7b2261646472223a22307866303466343962313334393936303233653938303032323530323538316337323738663331393161222c22726577617264223a393539393334393939323935393136307d2c7b2261646472223a22307832383737303734386363623365363334353764353037653133663836663739343934633034333261222c22726577617264223a393539393334393939323935393136307d2c7b2261646472223a22307862393864653937343532396139366433636230346363343938366537336236373234303132653534222c22726577617264223a393630303735323134313230333737337d2c7b2261646472223a22307837353130633133626638363864356233373432623266343233316330616137653063316163653237222c22726577617264223a393630303633303534363235393831337d2c7b2261646472223a22307833666463346661376561333061316533323930636133363139303435386335343835326566303438222c22726577617264223a393631383131363735303133393532387d2c7b2261646472223a22307830303330646337323133303631336631363732643630663837666265363731316664313766386538222c22726577617264223a393630363339303135363234333939377d2c7b2261646472223a22307835376266643865386365393566643866656663616163356635346563633761666536626433646363222c22726577617264223a393539393334393939323935393136307d2c7b2261646472223a22307832366564643235386531346561323463313435353664343830623933656265323035663063633535222c22726577617264223a393539393334393939323935393136307d2c7b2261646472223a22307833353134303734393137666134623638653638343136336536623537313038313435613766613330222c22726577617264223a393630363835373236353437393637357d2c7b2261646472223a22307832326561616639623234383162303132613235323261653439356565373563383161333361396338222c22726577617264223a31393333343832383235353633393332307d2c7b2261646472223a22307834326434336236373962363033386139633834613835343763643837346538393031376236633537222c22726577617264223a393630303036303938343831353330367d2c7b2261646472223a22307864623637313766333564366166623562643632373438333435666261393939323865623632306130222c22726577617264223a393539393334393939323935393136307d2c7b2261646472223a22307862396135316564343765353036623932633638373530383063313163626563383132323363336130222c22726577617264223a393539393334393939323935393136307d2c7b2261646472223a22307862646237626336393530336333306261313665386137643061613431383532376230313063323062222c22726577617264223a393539393334393939323935393136307d2c7b2261646472223a22307837636334383636323462323632656361393466636531623562653838313665373464366532613935222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307863363362623833376333623237363963616533323331646561323562656266323333386166366664222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307861646231623134316533393930633863663833303165353864383330313461366536653039643962222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307831363231353362393864333134343136643861633630303661353166386130666238663962633939222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307863643066666561313264656537353264656639333233373831323434333861656238656139366336222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307838633136643038353461356637623835353863663664343132653439666637636333663434386132222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307865383463643836343532356135343066336162343437626439396363366638326266383866383764222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307835336331636639653963386366626439343731363831343765636163323334363130303865643864222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307830653935663534666430376438326537366433356535343065356133653339636665623035303162222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307837393065383939376632336639643734383662643561366637313863663266373630353561653335222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307839386266646232626532663763643539303236613636323430303735323438326335333163373864222c22726577617264223a393539393334393939323935393135397d2c7b2261646472223a22307836343866623934336534626338353233303861316430343062363639656363346235393663663130222c22726577617264223a393831373534353935343633343435327d2c7b2261646472223a22307835336565396632613533333263643239366338343932353239636132353231366136336130383834222c22726577617264223a393630363435343135313931333533327d2c7b2261646472223a22307866336332333630373137313661373532376262353838623138323731373831323936613133653637222c22726577617264223a31303137393033373934383439343134377d2c7b2261646472223a22307833393338316531346638373361616437313337383530356632663931653637303362366535356530222c22726577617264223a393831343136323632373334303133377d2c7b2261646472223a22307861316262366231643736663062616463316534643236653536616132623862353233623536636362222c22726577617264223a307d2c7b2261646472223a22307866363462323861333336343233383566363066313262383133626639303532333135323065666533222c22726577617264223a3235303030303030303030303030303030307d2c7b2261646472223a22307838313665333062366333313462613564316136376231623534626539343463653435353465643837222c22726577617264223a3235303030303030303030303030303030307d2c7b2261646472223a22307865663065303836623237653830306363303465633330663930353636646530386362306531333830222c22726577617264223a307d5d",
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size":"0x1015",
"stateRoot":"0xe6d6c31a1dab5d4bb62ef3ea5422ac29096651953072b77bcef17b51ac22ea8e",
"timestamp":"0x64ff1f3a",
"totalDifficulty":"0x22b419f",
"transactions":[
],
"transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles":[
]
}
}
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x22b419e
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the block number, in hex eg. 0x10FB78
Sample response
Copy {
"jsonrpc":"2.0",
"id":1,
"result":"0x0"
}
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0xf4f61cc61ab284a70d90d527a030005898d259995f2d3fd1413d8dd897498e1b
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the hash of the transaction
Sample Response
Copy {
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x46a2123c3b60426653c3d3a37123c9c685fd105d2c48ae8893ffeace8825bea8",
"blockNumber":"0x22b1d6e",
"from":"0xb186a43c9ae0f5d4eeb9445b4f3af73d725c1e42",
"gas":"0x23326",
"gasPrice":"0x174876e801",
"maxFeePerGas":"0x174876e80a",
"maxPriorityFeePerGas":"0x174876e800",
"hash":"0xf4f61cc61ab284a70d90d527a030005898d259995f2d3fd1413d8dd897498e1b",
"input":"0x06fd4ac5000000000000000000000000000000000000000000000000193b499f907bbf630000000000000000000000000000000000000000000000000000000000000080000000000000000000000000b186a43c9ae0f5d4eeb9445b4f3af73d725c1e42ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000244c72ab61f11dd44bfa4aaf11e2efd89ca789fe000000000000000000000000ae81b9ffcde5ab7673dd4b2f5c648a5579430b17",
"nonce":"0x54",
"to":"0xe9086c38a7cf49d3b8547e3d9e085a5f0050701d",
"transactionIndex":"0x0",
"value":"0xde0b6b3a7640000",
"type":"0x2",
"accessList":[
],
"chainId":"0x458",
"v":"0x1",
"r":"0xf9dd68ea53a0a660d30f44d4256ffcc0784b475a077a64c741db7b94f6f4ee0c",
"s":"0x36bf6412b650a316309f441fba3780e4703725999bc14e66390529fa92a523a2"
}
}
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0x22B1D6E
&index=0x0
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the block number, in hex eg. 0x10FB78
the position of the uncle's index in the block, in hex eg. 0x0
Sample Response
Copy {
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x46a2123c3b60426653c3d3a37123c9c685fd105d2c48ae8893ffeace8825bea8",
"blockNumber":"0x22b1d6e",
"from":"0xb186a43c9ae0f5d4eeb9445b4f3af73d725c1e42",
"gas":"0x23326",
"gasPrice":"0x174876e801",
"maxFeePerGas":"0x174876e80a",
"maxPriorityFeePerGas":"0x174876e800",
"hash":"0xf4f61cc61ab284a70d90d527a030005898d259995f2d3fd1413d8dd897498e1b",
"input":"0x06fd4ac5000000000000000000000000000000000000000000000000193b499f907bbf630000000000000000000000000000000000000000000000000000000000000080000000000000000000000000b186a43c9ae0f5d4eeb9445b4f3af73d725c1e42ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000244c72ab61f11dd44bfa4aaf11e2efd89ca789fe000000000000000000000000ae81b9ffcde5ab7673dd4b2f5c648a5579430b17",
"nonce":"0x54",
"to":"0xe9086c38a7cf49d3b8547e3d9e085a5f0050701d",
"transactionIndex":"0x0",
"value":"0xde0b6b3a7640000",
"type":"0x2",
"accessList":[
],
"chainId":"0x458",
"v":"0x1",
"r":"0xf9dd68ea53a0a660d30f44d4256ffcc0784b475a077a64c741db7b94f6f4ee0c",
"s":"0x36bf6412b650a316309f441fba3780e4703725999bc14e66390529fa92a523a2"
}
}
eth_getTransactionCount
Returns the number of transactions performed by an address.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_getTransactionCount
&address=0xe6655ccda10e28e23eb067c85ec1a8f1a39847fd
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the address to get transaction count
the string
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
Copy {
"jsonrpc":"2.0",
"id":1,
"result":"0x2"
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the Wemix network.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0x02f874030185012a05f200852e90edd00082520894eeee7341f206302f2216e39d715b96d8c6901a1c880de0b6b3a764000080c001a0bf61ea5419c7856be4ea2221b721b849d50fec738d10a714e7aaa809d9ad8838a01e59353aa8e567cc0661fb58b047361998df234df6593bf424839bc5ea214a2c
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the signed raw transaction data to broadcast.
💡 Tip: Send a POST request if your hex string is particularly long.
🖋️ For more information on creating a signed raw transaction , visit this page.
Sample Response
Copy {
"id":1,
"jsonrpc": "2.0",
"result": "0x84c81fc1e23474e13be0114f94f99b43696830f33292fd1d642f37e87e95acd6"
}
⛏️ Note: The result
represents the transaction hash of the submitted raw transaction.
Use eth_getTransactionReceipt to retrieve full details.
eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0xbd26ebc335bbd6865d2d5ee1463a65f1fab3d6c32b0c3551961c894787ad89b0
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the hash of the transaction
Sample Response
Copy {
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x509fd33a852d755c39f89bd2087c45ba4f94663fff8fe9020da9ba785e1eda28",
"blockNumber":"0x22b426f",
"contractAddress":null,
"cumulativeGasUsed":"0x10c8e",
"effectiveGasPrice":"0x199c82cc00",
"from":"0xa19e2ca76c5b1eabb1af6cac447cf2411a799371",
"gasUsed":"0x10c8e",
"logs":[
{
"address":"0x61a4cfefadae5ae0614747e628408c78040d82fe",
"topics":[
"0xcdb6c50fc95430ac4511195bb0a3cb943f34705415ec82960792a7545a6850bb"
],
"data":"0x0000000000000000000000009c2d3bb8565c2fc4335c1068dd0b6ca60fb4ecab",
"blockNumber":"0x22b426f",
"transactionHash":"0xbd26ebc335bbd6865d2d5ee1463a65f1fab3d6c32b0c3551961c894787ad89b0",
"transactionIndex":"0x0",
"blockHash":"0x509fd33a852d755c39f89bd2087c45ba4f94663fff8fe9020da9ba785e1eda28",
"logIndex":"0x0",
"removed":false
},
{
"address":"0x61a4cfefadae5ae0614747e628408c78040d82fe",
"topics":[
"0x314916921496bd1e54a7739efba04c6cad7df0a752c7c6bf0ec1aae7da80024b",
"0x000000000000000000000000a19e2ca76c5b1eabb1af6cac447cf2411a799371"
],
"data":"0x0000000000000000000000000000000000000000000000000000000005f6a2bd000000000000000000000000000000000000000000000000000000000000edcb",
"blockNumber":"0x22b426f",
"transactionHash":"0xbd26ebc335bbd6865d2d5ee1463a65f1fab3d6c32b0c3551961c894787ad89b0",
"transactionIndex":"0x0",
"blockHash":"0x509fd33a852d755c39f89bd2087c45ba4f94663fff8fe9020da9ba785e1eda28",
"logIndex":"0x1",
"removed":false
}
],
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000001000000000000000000000000010000000000000000000004000000000000000000000000000000000000000000000080000000020000000000000000000000000000000000001000000080000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000",
"status":"0x1",
"to":"0x61a4cfefadae5ae0614747e628408c78040d82fe",
"transactionHash":"0xbd26ebc335bbd6865d2d5ee1463a65f1fab3d6c32b0c3551961c894787ad89b0",
"transactionIndex":"0x0",
"type":"0x2"
}
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_call
&to=0x61a4cfefadae5ae0614747e628408c78040d82fe
&data=0x323352d60000000000000000000000000000000000000000000000000000000005f6a2bd
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the address to interact with
the hash of the method signature and encoded parameters
the string
pre-defined block parameter, either earliest
, pending
or latest
⛽ Note: The gas
parameter is capped at 2x the current block gas limit.
Sample Response
Copy {
"jsonrpc":"2.0",
"id":1,
"error":{
"code":3,
"message":"execution reverted: Sender is not a aggregator",
"data":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001a53656e646572206973206e6f7420612061676772656761746f72000000000000"
}
}
eth_getCode
Returns code at a given address.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_getCode
&address=0x784b372069bfed612291c261951a10ef1200f9c5
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the address to get code
the string
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
Copy {
"jsonrpc":"2.0",
"id":1,
"result":"0x60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100855780635c60da1b146100985780638f283970146100c9578063f851a440146100e95761005d565b3661005d5761005b6100fe565b005b61005b6100fe565b34801561007157600080fd5b5061005b6100803660046106ca565b610118565b61005b6100933660046106e5565b61015f565b3480156100a457600080fd5b506100ad6101d0565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d557600080fd5b5061005b6100e43660046106ca565b61020b565b3480156100f557600080fd5b506100ad610235565b610106610292565b610116610111610331565b61033b565b565b61012061035f565b6001600160a01b0316336001600160a01b031614156101575761015481604051806020016040528060008152506000610392565b50565b6101546100fe565b61016761035f565b6001600160a01b0316336001600160a01b031614156101c8576101c38383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610392915050565b505050565b6101c36100fe565b60006101da61035f565b6001600160a01b0316336001600160a01b03161415610200576101fb610331565b905090565b6102086100fe565b90565b61021361035f565b6001600160a01b0316336001600160a01b0316141561015757610154816103f1565b600061023f61035f565b6001600160a01b0316336001600160a01b03161415610200576101fb61035f565b606061028583836040518060600160405280602781526020016107e460279139610445565b9392505050565b3b151590565b61029a61035f565b6001600160a01b0316336001600160a01b031614156101165760405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a4015b60405180910390fd5b60006101fb610519565b3660008037600080366000845af43d6000803e80801561035a573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b61039b83610541565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806103dc5750805b156101c3576103eb8383610260565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61041a61035f565b604080516001600160a01b03928316815291841660208301520160405180910390a1610154816105e9565b6060833b6104a45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610328565b600080856001600160a01b0316856040516104bf9190610794565b600060405180830381855af49150503d80600081146104fa576040519150601f19603f3d011682016040523d82523d6000602084013e6104ff565b606091505b509150915061050f828286610675565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610383565b803b6105a55760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610328565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5b80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b03811661064e5760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608401610328565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61036105c8565b60608315610684575081610285565b8251156106945782518084602001fd5b8160405162461bcd60e51b815260040161032891906107b0565b80356001600160a01b03811681146106c557600080fd5b919050565b6000602082840312156106dc57600080fd5b610285826106ae565b6000806000604084860312156106fa57600080fd5b610703846106ae565b9250602084013567ffffffffffffffff8082111561072057600080fd5b818601915086601f83011261073457600080fd5b81358181111561074357600080fd5b87602082850101111561075557600080fd5b6020830194508093505050509250925092565b60005b8381101561078357818101518382015260200161076b565b838111156103eb5750506000910152565b600082516107a6818460208701610768565b9190910192915050565b60208152600082518060208401526107cf816040850160208701610768565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204675187caf3a43285d9a2c1844a981e977bd52a85ff073e7fc649f73847d70a464736f6c63430008090033"
}
eth_getStorageAt
Returns the value from a storage position at a given address.
This endpoint is still experimental and may have potential issues
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_getStorageAt
&address=0xf8241f00de683651d99c0b61bc4dcde3cd7cce2c
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the address to get code
the hex code of the position in storage, eg 0x0
the string
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
Copy {
"jsonrpc":"2.0",
"id":1,
"result":"0x0000000000000000000000000000000000000000000000000000000000000001"
}
eth_gasPrice
Returns the current price per gas in wei.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Sample Response
Copy {
"jsonrpc":"2.0",
"id":73,
"result":"0x174876e801"
}
📖 Tip: The result
is returned in wei .
Easily convert Wemix units using our unit converter.
eth_estimateGas
Makes a call or transaction, which won't be added to the blockchain and returns the used gas.
Copy https://api-testnet.wemixscan.com/api
?module=proxy
&action=eth_estimateGas
&data=0x60fe47b10000000000000000000000000000000000000000000000000000000000000004
&to=0x272c31fC25E4e609CbCC9E7a9e6171b4B39feAca
&value=0x0
&gasPrice=0x51da038cc
&gas=0x186A0
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the hash of the method signature and encoded parameters
the string
representing the address to interact with
the value sent in this transaction, in hex eg. 0xff22
the amount of gas provided for the transaction, in hex eg. 0x5f5e0ff
the gas price paid for each unit of gas, in wei
post EIP-1559 , the gasPrice
has to be higher than the block's baseFeePerGas
⛽ Note: The gas
parameter is capped at 2x the current block gas limit.
Sample Response
Copy {
"jsonrpc":"2.0",
"id":1,
"result":"0x52d4"
}