For the full documentation of available parameters and descriptions, please visit the official Ethereum JSON-RPC docs.
For compatibility with Parity, please prefix all hex strings with " 0x ".
eth_blockNumber
Returns the number of most recent block
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Sample response
{
"jsonrpc":"2.0",
"id":83,
"result":"0xa11446"
}
eth_getBlockByNumber
Returns information about a block by block number.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0xa11446
&boolean=true
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
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
{
"jsonrpc":"2.0",
"id":1,
"result":{
"difficulty":"0x2",
"extraData":"0xd883010006846765746888676f312e31352e35856c696e75780000001600553d127f190188f3dd0693fdddcd71933edfc7bcb1ddf10931374bbf4f506155bc9741b763582b6ae438f3354924d65f0c7a15d9027ee218d66158d4a0738537af7600",
"gasLimit":"0x1c9c380",
"gasUsed":"0x0",
"hash":"0x53377a136df8fbb6c23591ee5f816d33f8a12f4147cdf30c90f101548cd73445",
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner":"0xe625dd7ad2f7b88723857946a41af646c589c336",
"mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce":"0x0000000000000000",
"number":"0xa11446",
"parentHash":"0xe0121a8b0f6a27850a35861d44b20df870cdf55971cb6aa538602b1108935f1b",
"receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size":"0x262",
"stateRoot":"0x5f2aa920403c555aa7bcb32c60508f84ed84b5138b6afaef5f85515c64fef4b8",
"timestamp":"0x60ed8b1a",
"totalDifficulty":"0x140bf98",
"transactions":[
],
"transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles":[
]
}
}
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0xa11446
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
the block number, in hex eg. 0x10FB78
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":"0xc"
}
eth_getTransactionByHash
Returns information about a transaction requested by transaction hash.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0xac2f90f947140c9db6502ba86a7e015dc567a23e3a2603a4e1c20bc5440952fa
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
the string
representing the hash of the transaction
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x7f4f2a929c8cf13e91656451013da5d827035b72b50cb06d792116e23848b7a4",
"blockNumber":"0xbce938",
"from":"0x05e8b4714bcfa7adc4b1f16e81aa2152c7ac0a8f",
"gas":"0x8fa2",
"gasPrice":"0x2540be400",
"hash":"0xac2f90f947140c9db6502ba86a7e015dc567a23e3a2603a4e1c20bc5440952fa",
"input":"0xa9059cbb000000000000000000000000000000000000000000000000000000000000dead000000000000000000000000000000000000000000000000003ff2e795f50000",
"nonce":"0x6c",
"to":"0x6c7e337d8afc09ff2f370d96f34da54b847422f5",
"transactionIndex":"0x5",
"value":"0x0",
"type":"0x0",
"v":"0xe5",
"r":"0x8e80a29fee7c48b0ddb12062b254ca6c1c792f84117ea6cd52099e996d264a69",
"s":"0x22c66701aa1bb9b6824d2a1926b97ecc3cdde6d301469aa2ba3204a0360aff0c"
}
}
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0xa6c1c0
&index=0x1
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
the block number, in hex eg. 0x10FB78
the position of the uncle's index in the block, in hex eg. 0x1
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x7890e94ebec7773f9f6f707374392290b229449cadf4c344a77cd60719d3914e",
"blockNumber":"0xa6c1c0",
"from":"0xf1951dfddecaad740ae436bfe408c2b34d6e8585",
"gas":"0x4049a",
"gasPrice":"0x2540be400",
"hash":"0xbdadbf2e6f0e10b19a15320fbe88401d91f1fefb274d24054866920a59dae3fa",
"input":"0x38ed173900000000000000000000000000000000000000000000000000089c51c3a7d6f6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f1951dfddecaad740ae436bfe408c2b34d6e85850000000000000000000000000000000000000000000000000000000060feb72400000000000000000000000000000000000000000000000000000000000000020000000000000000000000003fad19805ac7b25c6de0ca64235ed7aac4d6083a0000000000000000000000005562333ff4e0d788b236e77e9c5733ae2bf60e6e",
"nonce":"0xd",
"to":"0xcde540d7eafe93ac5fe6233bee57e1270d3e330f",
"transactionIndex":"0x1",
"value":"0x0",
"type":"0x0",
"v":"0x1b",
"r":"0xcdf341e38192488ce1f6cea4902a89b7ba3d662aa87bef9dfbd422f133752cb5",
"s":"0x2a8e0ee6dd53bf175821117acf9fda5800430d5bd9c9eab07e30e5d799c4027c"
}
}
eth_getTransactionCount
Returns the number of transactions performed by an address**.**
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getTransactionCount
&address=0x05e8b4714BCfa7AdC4b1F16e81AA2152C7aC0a8F
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
the string
representing the address to get transaction count
the string
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x79"
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the BNB Smart Chain network.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0xf904808000831cfde080
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
the string
representing the signed raw transaction data to broadcast.
🖊️ Tip: For more information on creating a signed raw transaction, visit this page.
Sample Response
{
"id":1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
⛏️ 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 that has been validated.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0x96d3fa4218ad36ceb640078b0581ace166ebde7be43789226592f898f58480f2
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
the string
representing the hash of the transaction
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0xc5210ce45b8ba326b4e42761d23e541e52a3306e13953ed638236d95e60f416a",
"blockNumber":"0xbce950",
"contractAddress":null,
"cumulativeGasUsed":"0x133edc",
"from":"0x05e8b4714bcfa7adc4b1f16e81aa2152c7ac0a8f",
"gasUsed":"0x8fae",
"logs":[
{
"address":"0x6c7e337d8afc09ff2f370d96f34da54b847422f5",
"topics":[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000005e8b4714bcfa7adc4b1f16e81aa2152c7ac0a8f",
"0x000000000000000000000000000000000000000000000000000000000000dead"
],
"data":"0x00000000000000000000000000000000000000000000000000dfd22a8cd98000",
"blockNumber":"0xbce950",
"transactionHash":"0x96d3fa4218ad36ceb640078b0581ace166ebde7be43789226592f898f58480f2",
"transactionIndex":"0x3",
"blockHash":"0xc5210ce45b8ba326b4e42761d23e541e52a3306e13953ed638236d95e60f416a",
"logIndex":"0x29",
"removed":false
}
],
"logsBloom":"0x00000000000010000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000080000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000010000000000000000000000000000085000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status":"0x1",
"to":"0x6c7e337d8afc09ff2f370d96f34da54b847422f5",
"transactionHash":"0x96d3fa4218ad36ceb640078b0581ace166ebde7be43789226592f898f58480f2",
"transactionIndex":"0x3",
"type":"0x0"
}
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_call
&to=0xAEEF46DB4855E25702F8237E8f403FddcaF931C0
&data=0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
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
{
"jsonrpc":"2.0",
"id":1,
"result":"0x00000000000000000000000000000000000000000000000000601d8888141c00"
}
eth_getCode
Returns code at a given address.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getCode
&address=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
the string
representing the address to get code
the string
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x608060405234801561001057600080fd5b50600436106101b95760003560e01c8063782d6fe1116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e1461056c578063e7a324dc1461059a578063f1127ed8146105a2578063f2fde38b146105f4576101b9565b8063a9059cbb146104d3578063b4b5ea57146104ff578063c3cda52014610525576101b9565b80638da5cb5b116100d35780638da5cb5b1461047a57806395d89b4114610482578063a0712d681461048a578063a457c2d7146104a7576101b9565b8063782d6fe1146104205780637ecebe001461044c578063893d20e814610472576101b9565b806339509351116101665780635c19a95c116101405780635c19a95c1461038d5780636fcfff45146103b357806370a08231146103f2578063715018a614610418576101b9565b806339509351146102f157806340c10f191461031d578063587cde1e1461034b576101b9565b806320606b701161019757806320606b701461029557806323b872dd1461029d578063313ce567146102d3576101b9565b806306fdde03146101be578063095ea7b31461023b57806318160ddd1461027b575b600080fd5b6101c661061a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102005781810151838201526020016101e8565b50505050905090810190601f16801561022d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102676004803603604081101561025157600080fd5b506001600160a01b0381351690602001356106b0565b604080519115158252519081900360200190f35b6102836106ce565b60408051918252519081900360200190f35b6102836106d4565b610267600480360360608110156102b357600080fd5b506001600160a01b038135811691602081013590911690604001356106f8565b6102db61077f565b6040805160ff9092168252519081900360200190f35b6102676004803603604081101561030757600080fd5b506001600160a01b038135169060200135610788565b6103496004803603604081101561033357600080fd5b506001600160a01b0381351690602001356107d6565b005b6103716004803603602081101561036157600080fd5b50356001600160a01b0316610873565b604080516001600160a01b039092168252519081900360200190f35b610349600480360360208110156103a357600080fd5b50356001600160a01b0316610891565b6103d9600480360360208110156103c957600080fd5b50356001600160a01b031661089e565b6040805163ffffffff9092168252519081900360200190f35b6102836004803603602081101561040857600080fd5b50356001600160a01b03166108b6565b6103496108d1565b6102836004803603604081101561043657600080fd5b506001600160a01b03813516906020013561099d565b6102836004803603602081101561046257600080fd5b50356001600160a01b0316610ba5565b610371610bb7565b610371610bc6565b6101c6610bd5565b610267600480360360208110156104a057600080fd5b5035610c36565b610267600480360360408110156104bd57600080fd5b506001600160a01b038135169060200135610cbb565b610267600480360360408110156104e957600080fd5b506001600160a01b038135169060200135610d23565b6102836004803603602081101561051557600080fd5b50356001600160a01b0316610d37565b610349600480360360c081101561053b57600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135610d9b565b6102836004803603604081101561058257600080fd5b506001600160a01b0381358116916020013516611065565b610283611090565b6105d4600480360360408110156105b857600080fd5b5080356001600160a01b0316906020013563ffffffff166110b4565b6040805163ffffffff909316835260208301919091528051918290030190f35b6103496004803603602081101561060a57600080fd5b50356001600160a01b03166110e1565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106a65780601f1061067b576101008083540402835291602001916106a6565b820191906000526020600020905b81548152906001019060200180831161068957829003601f168201915b5050505050905090565b60006106c46106bd611154565b8484611158565b5060015b92915050565b60035490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6000610705848484611244565b61077584610711611154565b61077085604051806060016040528060288152602001611ae5602891396001600160a01b038a1660009081526002602052604081209061074f611154565b6001600160a01b031681526020810191909152604001600020549190611396565b611158565b5060019392505050565b60065460ff1690565b60006106c4610795611154565b8461077085600260006107a6611154565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061142d565b6107de611154565b6000546001600160a01b03908116911614610840576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61084a8282611487565b6001600160a01b0380831660009081526007602052604081205461086f92168361156d565b5050565b6001600160a01b039081166000908152600760205260409020541690565b61089b33826116af565b50565b60096020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526001602052604090205490565b6108d9611154565b6000546001600160a01b0390811691161461093b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60004382106109dd5760405162461bcd60e51b8152600401808060200182810382526027815260200180611b676027913960400191505060405180910390fd5b6001600160a01b03831660009081526009602052604090205463ffffffff1680610a0b5760009150506106c8565b6001600160a01b038416600090815260086020908152604080832063ffffffff600019860181168552925290912054168310610a7a576001600160a01b03841660009081526008602090815260408083206000199490940163ffffffff168352929052206001015490506106c8565b6001600160a01b038416600090815260086020908152604080832083805290915290205463ffffffff16831015610ab55760009150506106c8565b600060001982015b8163ffffffff168163ffffffff161115610b6e57600282820363ffffffff16048103610ae7611a38565b506001600160a01b038716600090815260086020908152604080832063ffffffff808616855290835292819020815180830190925280549093168082526001909301549181019190915290871415610b49576020015194506106c89350505050565b805163ffffffff16871115610b6057819350610b67565b6001820392505b5050610abd565b506001600160a01b038516600090815260086020908152604080832063ffffffff9094168352929052206001015491505092915050565b600a6020526000908152604090205481565b6000610bc1610bc6565b905090565b6000546001600160a01b031690565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106a65780601f1061067b576101008083540402835291602001916106a6565b6000610c40611154565b6000546001600160a01b03908116911614610ca2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610cb3610cad611154565b83611487565b506001919050565b60006106c4610cc8611154565b8461077085604051806060016040528060258152602001611bf96025913960026000610cf2611154565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611396565b60006106c4610d30611154565b8484611244565b6001600160a01b03811660009081526009602052604081205463ffffffff1680610d62576000610d94565b6001600160a01b038316600090815260086020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610dc661061a565b80519060200120610dd561175c565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a905282518085039091018152610140840183528051908501207f19010000000000000000000000000000000000000000000000000000000000006101608501526101628401829052610182808501829052835180860390910181526101a285018085528151918701919091206000918290526101c2860180865281905260ff8b166101e287015261020286018a905261022286018990529351929650909492939092600192610242808401937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08301929081900390910190855afa158015610f41573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116610fb15760405162461bcd60e51b8152600401808060200182810382526026815260200180611b0d6026913960400191505060405180910390fd5b6001600160a01b0381166000908152600a60205260409020805460018101909155891461100f5760405162461bcd60e51b8152600401808060200182810382526022815260200180611bb46022913960400191505060405180910390fd5b8742111561104e5760405162461bcd60e51b8152600401808060200182810382526026815260200180611abf6026913960400191505060405180910390fd5b611058818b6116af565b505050505b505050505050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b60086020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6110e9611154565b6000546001600160a01b0390811691161461114b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61089b81611760565b3390565b6001600160a01b03831661119d5760405162461bcd60e51b8152600401808060200182810382526024815260200180611a756024913960400191505060405180910390fd5b6001600160a01b0382166111e25760405162461bcd60e51b8152600401808060200182810382526022815260200180611c1e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166112895760405162461bcd60e51b8152600401808060200182810382526025815260200180611a506025913960400191505060405180910390fd5b6001600160a01b0382166112ce5760405162461bcd60e51b8152600401808060200182810382526023815260200180611bd66023913960400191505060405180910390fd5b61130b81604051806060016040528060268152602001611b8e602691396001600160a01b0386166000908152600160205260409020549190611396565b6001600160a01b03808516600090815260016020526040808220939093559084168152205461133a908261142d565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156114255760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113ea5781810151838201526020016113d2565b50505050905090810190601f1680156114175780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610d94576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166114e2576040805162461bcd60e51b815260206004820152601f60248201527f42455032303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6003546114ef908261142d565b6003556001600160a01b038216600090815260016020526040902054611515908261142d565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b816001600160a01b0316836001600160a01b03161415801561158f5750600081115b156116aa576001600160a01b03831615611621576001600160a01b03831660009081526009602052604081205463ffffffff1690816115cf576000611601565b6001600160a01b038516600090815260086020908152604080832063ffffffff60001987011684529091529020600101545b9050600061160f8285611818565b905061161d8684848461185a565b5050505b6001600160a01b038216156116aa576001600160a01b03821660009081526009602052604081205463ffffffff16908161165c57600061168e565b6001600160a01b038416600090815260086020908152604080832063ffffffff60001987011684529091529020600101545b9050600061169c828561142d565b905061105d8584848461185a565b505050565b6001600160a01b03808316600090815260076020526040812054909116906116d6846108b6565b6001600160a01b0385811660008181526007602052604080822080547fffffffffffffffffffffffff000000000000000000000000000000000000000016898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461175682848361156d565b50505050565b4690565b6001600160a01b0381166117a55760405162461bcd60e51b8152600401808060200182810382526026815260200180611a996026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000610d9483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611396565b600061187e43604051806060016040528060348152602001611b33603491396119da565b905060008463ffffffff161180156118c757506001600160a01b038516600090815260086020908152604080832063ffffffff6000198901811685529252909120548282169116145b15611904576001600160a01b038516600090815260086020908152604080832063ffffffff60001989011684529091529020600101829055611990565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600884528681208b861682528452868120955186549086167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000918216178755925160019687015590815260099092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b6000816401000000008410611a305760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156113ea5781810151838201526020016113d2565b509192915050565b60408051808201909152600080825260208201529056fe42455032303a207472616e736665722066726f6d20746865207a65726f206164647265737342455032303a20617070726f76652066726f6d20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737343414b453a3a64656c656761746542795369673a207369676e6174757265206578706972656442455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636543414b453a3a64656c656761746542795369673a20696e76616c6964207369676e617475726543414b453a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747343414b453a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656442455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636543414b453a3a64656c656761746542795369673a20696e76616c6964206e6f6e636542455032303a207472616e7366657220746f20746865207a65726f206164647265737342455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f42455032303a20617070726f766520746f20746865207a65726f2061646472657373a26469706673582212209755240809e31aec9fa5790314682233ca431b7c4f252d7e4bba347e2e74208664736f6c634300060c0033"
}
eth_getStorageAt
Returns the value from a storage position at a given address.
This endpoint is still experimental and may have potential issues
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getStorageAt
&address=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
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
{
"jsonrpc":"2.0",
"id":1,
"result":"0x00000000000000000000000073feaa1ee314f8c655e354234017be2193c9e24e"
}
eth_gasPrice
Returns the current price per gas in wei.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Sample Response
{
"jsonrpc":"2.0",
"id":73,
"result":"0x12a05f200"
}
📖 Tip: The result
is returned in wei.
Easily convert Ethereum units using our unit converter.
eth_estimateGas
Makes a call or transaction, which won't be added to the blockchain and returns the gas used.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_estimateGas
&data=0x4e71d92d
&to=0xEeee7341f206302f2216e39D715B96D8C6901A1C
&value=0xff22
&gasPrice=0x51da038cc
&gas=0x5f5e0ff
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
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
⛽ Note: The gas
parameter is capped at 2x the current block gas limit.
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x5248"
}