Geth Proxy
For the full documentation of available parameters and descriptions, please visit the official Ethereum JSON-RPC docs.
eth_blockNumber
Returns the number of most recent block
https://api.bttcscan.com/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
No parameters required.
Sample response
{
"jsonrpc":"2.0",
"id":83,
"result":"0x15b8926"
}
eth_getBlockByNumber
Returns information about a block by block number.
https://api.bttcscan.com/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0x15b8926
&boolean=true
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
tag | the block number, in hex eg. |
boolean | the when |
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"difficulty":"0xc",
"extraData":"0xd883010008846274746388676f312e31392e34856c696e7578000000000000002305f93e6020d0b1a25c3900d8329c463644a470e721672a979367696308d0b35a9ffe52ed449800f438173942698a572fe7c5ab17ddc4fac8aae691fed8950801",
"gasLimit":"0x1312d00",
"gasUsed":"0x0",
"hash":"0xfcb057971115a8e449c0149d764e5b84719cb3689ba4c8c898452f8dc98d6c19",
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner":"0x0000000000000000000000000000000000000000",
"mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce":"0x0000000000000000",
"number":"0x15b8926",
"parentHash":"0x27de6eba286a2136c48295ad407926adbc1b290f333b5774ace957dd27dea76e",
"receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size":"0x263",
"stateRoot":"0x523247a80c77bf025cd92cb9b0dba7b65b0d455efc43efa0cb14da22f0afa81a",
"timestamp":"0x6480901d",
"totalDifficulty":"0xdb6fa98",
"transactions":[
],
"transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles":[
]
}
}
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
https://api.bttcscan.com/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x15b8926
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
tag | the block number, in hex eg. |
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x0"
}
eth_getTransactionByHash
Returns information about a transaction requested by transaction hash.
https://api.bttcscan.com/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0x09db83561e099cdfd19cab166679b921ca66a159c57ee66625b42eda629521db
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
txhash | the |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0xab34d120c2436363f36dc8ffb267c66e437e35ea9cb59c58247e156b8f7583e1",
"blockNumber":"0x15b8084",
"from":"0x5261998fbe0379fb67136d040ed5b20f441a6672",
"gas":"0x35569",
"gasPrice":"0x110d9316ec000",
"hash":"0x09db83561e099cdfd19cab166679b921ca66a159c57ee66625b42eda629521db",
"input":"0x1c72d52300000000000000000000000079ac592e32801728353772d4f200ae33443e34de000000000000000000000000000000000000000000000000000000000000101000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000054d637b848e2e8e6288000000000000000000000000000063a3dc17a67de789e94f521bc8c4851ec764a54f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b91fa2dc7850f5ed73000",
"nonce":"0x23",
"to":"0x2c166b83394838d650e4985ce93de26cfa68a25d",
"transactionIndex":"0x0",
"value":"0x54d637b848e2e8e62880000",
"type":"0x0",
"v":"0x1b2",
"r":"0x3cad4f74e1e4cb3011be1cfb879f763c42355acd12e5ecf7f616e91e4f21864f",
"s":"0x28870243b38b1bb8bbd5af025da5d51697c80268891936812d23e67fce96dacd"
}
}
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
https://api.bttcscan.com/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0x15B89AC
&index=0x1
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
tag | the block number, in hex eg. |
index | the position of the uncle's index in the block, in hex eg. |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x70fd3b61e6334fb69d3294b2c74f478fec49eea7a6a0a86edca5fce7764bf45a",
"blockNumber":"0x15b89ac",
"from":"0xebdeefa2edc66268a125b6073b66f57fc4601753",
"gas":"0x445c0",
"gasPrice":"0x110d9316ec000",
"hash":"0x218be1ab232c95f3c3ef7fe09d413439186c743714d9ceb95b7b81444fefed45",
"input":"0xa9059cbb000000000000000000000000b3b3cfc0facf9321532efcbb0e82afcce8bd43a4000000000000000000000000000000000000000000000000000000000bf7a8e0",
"nonce":"0x2b3",
"to":"0xdb28719f7f938507dbfe4f0eae55668903d34a15",
"transactionIndex":"0x1",
"value":"0x0",
"type":"0x0",
"v":"0x1b2",
"r":"0x7262995f654df343184f8b1ca31695d3eddce36c92cd7ef930cd864fa42c3fdd",
"s":"0x719263ac20d9e54198c2d6f520497ba8d9da52c0e7c5167bb0a8c96b2c5fb8fe"
}
}
eth_getTransactionCount
Returns the number of transactions performed by an address.
https://api.bttcscan.com/api
?module=proxy
&action=eth_getTransactionCount
&address=0xebdeefa2edc66268a125b6073b66f57fc46017530x2b40x2b4
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
address | the |
tag | the |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x2b4"
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the BTTC Chain network.
https://api.bttcscan.com/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0xf904808000831cfde080
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
hex | the |
🖊️ 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.bttcscan.com/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0x873ba5bebe5b3861aa477933cc3cbd606a8c7f9e21e102e1a644179cec073b60
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
txhash | the |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x7115e2a8da3c80276607304b4a4131d68e7c325e52e1e33e6ffc2f15a4ba3483",
"blockNumber":"0x15b89ec",
"contractAddress":null,
"cumulativeGasUsed":"0x64b44",
"effectiveGasPrice":"0x110d9316ec001",
"from":"0xb4ad1dafdac6968b03ff008f1c50f0d587f76922",
"gasUsed":"0x64b44",
"logs":[
{
"address":"0x0000000000000000000000000000000000001010",
"topics":[
"0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
"0x0000000000000000000000000000000000000000000000000000000000001010",
"0x000000000000000000000000b4ad1dafdac6968b03ff008f1c50f0d587f76922",
"0x0000000000000000000000005b1074ad528c31622a3f067a5b4557af8dfd07e5"
],
"data":"0x000000000000000000000000000000000000000000000006b54f43c513b14b4400000000000000000000000000000000000000000005789ca87230814fd8e251000000000000000000000000000000000000000002187e6ac88f5262d4de7646000000000000000000000000000000000000000000057895f322ecbc3c27970d000000000000000000000000000000000000000002187e717dde9627e88fc18a",
"blockNumber":"0x15b89ec",
"transactionHash":"0x873ba5bebe5b3861aa477933cc3cbd606a8c7f9e21e102e1a644179cec073b60",
"transactionIndex":"0x0",
"blockHash":"0x7115e2a8da3c80276607304b4a4131d68e7c325e52e1e33e6ffc2f15a4ba3483",
"logIndex":"0x0",
"removed":false
}
],
"logsBloom":"0x00000000040000000000100000000000000000000000000000000000000200000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000001000800000000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000100000000000000000000000000000004000000000000000000001000000000000000000000000000000100000000000000000000400000000000000000000000000000000000000000000000000100000",
"status":"0x0",
"to":"0xe2d262e325792b8189c1b8c52c8a08c51075835d",
"transactionHash":"0x873ba5bebe5b3861aa477933cc3cbd606a8c7f9e21e102e1a644179cec073b60",
"transactionIndex":"0x0",
"type":"0x0"
}
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
https://api.bttcscan.com/api
?module=proxy
&action=eth_call
&to=0x0000000000000000000000000000000000001010
&data=0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
to | the |
data | the hash of the method signature and encoded parameters |
tag | the |
⛽ Note: The gas
parameter is capped at 2x the current block gas limit.
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x0000000000000000000000000000000000000000000000000000000000000000"
}
eth_getCode
Returns code at a given address.
https://api.bttcscan.com/api
?module=proxy
&action=eth_getCode
&address=0xbd55ae392f5abbc10eff7d6610b5b2d32293c418
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
address | the |
tag | the |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x6080604052600436106101235760003560e01c806347535d7b116100a05780639010d07c116100645780639010d07c1461050d57806391d148541461053d578063a217fddf14610576578063ca15c8731461058b578063d547741f146105b55761012a565b806347535d7b146104225780634bf6143b1461044b578063568b80b51461049057806366fb3c38146104a55780636fdca5e0146104e15761012a565b8063248a9ca3116100e7578063248a9ca31461033e5780632d0335ab146103685780632f2ff15d1461039b5780633408e470146103d457806336568abe146103e95761012a565b806303bea50c1461012f57806306c0b3cc1461017e5780630c53c51c146101c95780630f7e59701461030257806320379ee5146103175761012a565b3661012a57005b600080fd5b34801561013b57600080fd5b506101626004803603602081101561015257600080fd5b50356001600160a01b03166105ee565b604080516001600160a01b039092168252519081900360200190f35b34801561018a57600080fd5b506101c7600480360360808110156101a157600080fd5b506001600160a01b0381358116916020810135821691604082013516906060013561060c565b005b61028d600480360360a08110156101df57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561020a57600080fd5b82018360208201111561021c57600080fd5b8035906020019184600183028401116401000000008311171561023e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550508235935050506020810135906040013560ff166109dd565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102c75781810151838201526020016102af565b50505050905090810190601f1680156102f45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030e57600080fd5b5061028d610ce0565b34801561032357600080fd5b5061032c610cfd565b60408051918252519081900360200190f35b34801561034a57600080fd5b5061032c6004803603602081101561036157600080fd5b5035610d03565b34801561037457600080fd5b5061032c6004803603602081101561038b57600080fd5b50356001600160a01b0316610d18565b3480156103a757600080fd5b506101c7600480360360408110156103be57600080fd5b50803590602001356001600160a01b0316610d33565b3480156103e057600080fd5b5061032c610d9f565b3480156103f557600080fd5b506101c76004803603604081101561040c57600080fd5b50803590602001356001600160a01b0316610da3565b34801561042e57600080fd5b50610437610e04565b604080519115158252519081900360200190f35b34801561045757600080fd5b506101c76004803603606081101561046e57600080fd5b506001600160a01b038135811691602081013582169160409091013516610e0d565b34801561049c57600080fd5b5061032c611074565b6101c7600480360360808110156104bb57600080fd5b506001600160a01b03813581169160208101358216916040820135169060600135611097565b3480156104ed57600080fd5b506101c76004803603602081101561050457600080fd5b5035151561153a565b34801561051957600080fd5b506101626004803603604081101561053057600080fd5b50803590602001356115c3565b34801561054957600080fd5b506104376004803603604081101561056057600080fd5b50803590602001356001600160a01b03166115ea565b34801561058257600080fd5b5061032c611608565b34801561059757600080fd5b5061032c600480360360208110156105ae57600080fd5b503561160d565b3480156105c157600080fd5b506101c7600480360360408110156105d857600080fd5b50803590602001356001600160a01b0316611624565b6001600160a01b039081166000908152600560205260409020541690565b60065460ff1661065e576040805162461bcd60e51b81526020600482015260186024820152772a34329031b7b73a3930b1ba1034b9903737ba1037b832b760411b604482015290519081900360640190fd5b604080516001600160a01b038581168252602082018490528251818616939188169233927f29aad86b46fcfbc8552c55f312a1420a2f563f94aa18e923f292f04f8d0b320a92918290030190a46106ce6106b661167d565b6001600160a01b03851690308463ffffffff6116db16565b816001600160a01b0316836001600160a01b0316141561076557816001600160a01b031663205c287885836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561074857600080fd5b505af115801561075c573d6000803e3d6000fd5b505050506109d7565b6001600160a01b0380841660009081526005602052604090205416806107d2576040805162461bcd60e51b815260206004820152601960248201527f6f726967696e546f6b656e2063616e2774206265207a65726f00000000000000604482015290519081900360640190fd5b806001600160a01b0316846001600160a01b03161461084d57836001600160a01b03166374d945d9836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561083157600080fd5b505af1158015610845573d6000803e3d6000fd5b505050508093505b806001600160a01b0316836001600160a01b031614156108e557826001600160a01b031663205c287886846040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156108c757600080fd5b505af11580156108db573d6000803e3d6000fd5b50505050506109d7565b6108ff6001600160a01b038516848463ffffffff61173516565b826001600160a01b031663759c7265836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561094557600080fd5b505af1158015610959573d6000803e3d6000fd5b50505050826001600160a01b031663205c287886846040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156109bd57600080fd5b505af11580156109d1573d6000803e3d6000fd5b50505050505b50505050565b60606109e7611fc7565b50604080516060810182526001600160a01b03881660008181526004602090815290849020548352820152908101869052610a25878287878761181b565b610a605760405162461bcd60e51b81526004018080602001828103825260218152602001806121016021913960400191505060405180910390fd5b6001600160a01b038716600090815260046020526040902054610a8a90600163ffffffff6118f816565b6001600160a01b03881660008181526004602090815260408083209490945583519283523383820181905260609484018581528b51958501959095528a517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b958d9592948d94919260808501928601918190849084905b83811015610b19578181015183820152602001610b01565b50505050905090810190601f168015610b465780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a160006060306001600160a01b0316888a6040516020018083805190602001908083835b60208310610b975780518252601f199092019160209182019101610b78565b6001836020036101000a038019825116818451168082178552505050505050905001826001600160a01b03166001600160a01b031660601b8152601401925050506040516020818303038152906040526040518082805190602001908083835b60208310610c165780518252601f199092019160209182019101610bf7565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610c78576040519150601f19603f3d011682016040523d82523d6000602084013e610c7d565b606091505b509150915081610cd4576040805162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604482015290519081900360640190fd5b98975050505050505050565b604051806040016040528060018152602001603160f81b81525081565b60035490565b60009081526020819052604090206002015490565b6001600160a01b031660009081526004602052604090205490565b600082815260208190526040902060020154610d5690610d51611952565b6115ea565b610d915760405162461bcd60e51b815260040180806020018281038252602f815260200180612014602f913960400191505060405180910390fd5b610d9b8282611956565b5050565b4690565b610dab611952565b6001600160a01b0316816001600160a01b031614610dfa5760405162461bcd60e51b815260040180806020018281038252602f81526020018061216f602f913960400191505060405180910390fd5b610d9b82826119c5565b60065460ff1681565b604080516a4d41505045525f524f4c4560a81b8152905190819003600b019020610e3981610d51611952565b600190610ed95760405162461bcd60e51b8152602060048201908152825460026000196101006001841615020190911604602483018190529091829160449091019084908015610eca5780601f10610e9f57610100808354040283529160200191610eca565b820191906000526020600020905b815481529060010190602001808311610ead57829003601f168201915b50509250505060405180910390fd5b506001600160a01b038481166000908152600560205260409020541615610f47576040805162461bcd60e51b815260206004820152601b60248201527f746f6b656e206d617070696e67206f6e6c7920616464206f6e63650000000000604482015290519081900360640190fd5b6001600160a01b038381166000908152600560205260409020541615610fb4576040805162461bcd60e51b815260206004820152601b60248201527f746f6b656e206d617070696e67206f6e6c7920616464206f6e63650000000000604482015290519081900360640190fd5b6001600160a01b038281166000908152600560205260409020541615611021576040805162461bcd60e51b815260206004820152601b60248201527f746f6b656e206d617070696e67206f6e6c7920616464206f6e63650000000000604482015290519081900360640190fd5b506001600160a01b0391821660009081526005602052604080822080549585166001600160a01b031996871681179091559290931681528281208054851683179055818152919091208054909216179055565b604080516a4d41505045525f524f4c4560a81b8152905190819003600b01902081565b60065460ff166110e9576040805162461bcd60e51b81526020600482015260186024820152772a34329031b7b73a3930b1ba1034b9903737ba1037b832b760411b604482015290519081900360640190fd5b604080516001600160a01b038581168252602082018490528251818616939188169233927f29aad86b46fcfbc8552c55f312a1420a2f563f94aa18e923f292f04f8d0b320a92918290030190a46001600160a01b038316611010141561131457803410156111885760405162461bcd60e51b81526004018080602001828103825260238152602001806121226023913960400191505060405180910390fd5b6001600160a01b038216611010141561121957826001600160a01b031663205c28788286846040518463ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001828152602001925050506000604051808303818588803b1580156111fb57600080fd5b505af115801561120f573d6000803e3d6000fd5b50505050506112d6565b816001600160a01b03166322cd3cbc826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561125457600080fd5b505af1158015611268573d6000803e3d6000fd5b50506040805163040b850f60e31b81526001600160a01b038981166004830152602482018790529151918716945063205c28789350604480820193506000929182900301818387803b1580156112bd57600080fd5b505af11580156112d1573d6000803e3d6000fd5b505050505b8034111561130f5760405133903483900380156108fc02916000818181858888f1935050505015801561130d573d6000803e3d6000fd5b505b6109d7565b61131f6106b661167d565b6001600160a01b03821661101014156113f057826001600160a01b03166374d945d9826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561137857600080fd5b505af115801561138c573d6000803e3d6000fd5b50505050816001600160a01b031663205c28788286846040518463ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001828152602001925050506000604051808303818588803b1580156108c757600080fd5b816001600160a01b0316836001600160a01b0316146114bc57826001600160a01b03166374d945d9826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561144f57600080fd5b505af1158015611463573d6000803e3d6000fd5b50505050816001600160a01b03166322cd3cbc826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156114a257600080fd5b505af11580156114b6573d6000803e3d6000fd5b50505050505b816001600160a01b031663205c287885836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561151c57600080fd5b505af1158015611530573d6000803e3d6000fd5b5050505050505050565b600061154881610d51611952565b6001906115ae5760405162461bcd60e51b8152602060048201908152825460026000196101006001841615020190911604602483018190529091829160449091019084908015610eca5780601f10610e9f57610100808354040283529160200191610eca565b50506006805460ff1916911515919091179055565b60008281526020819052604081206115e1908363ffffffff611a3416565b90505b92915050565b60008281526020819052604081206115e1908363ffffffff611a4016565b600081565b60008181526020819052604081206115e490611a55565b60008281526020819052604090206002015461164290610d51611952565b610dfa5760405162461bcd60e51b81526004018080602001828103825260308152602001806120ac6030913960400191505060405180910390fd5b6000333014156116d55760606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506116d89050565b50335b90565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526109d7908590611a60565b60408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291516000926117c69285929188169163dd62ed3e91604480820192602092909190829003018186803b15801561178e57600080fd5b505afa1580156117a2573d6000803e3d6000fd5b505050506040513d60208110156117b857600080fd5b50519063ffffffff6118f816565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790529091506109d7908590611a60565b60006001600160a01b0386166118625760405162461bcd60e51b81526004018080602001828103825260258152602001806120dc6025913960400191505060405180910390fd5b600161187561187087611b16565b611ba2565b83868660405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156118cf573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000828201838110156115e1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6000828152602081905260409020611974908263ffffffff611bee16565b15610d9b57611981611952565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020819052604090206119e3908263ffffffff611c0316565b15610d9b576119f0611952565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006115e18383611c18565b60006115e1836001600160a01b038416611c7c565b60006115e482611c94565b6060611ab5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c989092919063ffffffff16565b805190915015611b1157808060200190516020811015611ad457600080fd5b5051611b115760405162461bcd60e51b815260040180806020018281038252602a815260200180612145602a913960400191505060405180910390fd5b505050565b600060405180608001604052806043815260200161204360439139805190602001208260000151836020015184604001518051906020012060405160200180858152602001848152602001836001600160a01b03166001600160a01b03168152602001828152602001945050505050604051602081830303815290604052805190602001209050919050565b6000611bac610cfd565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b60006115e1836001600160a01b038416611cb1565b60006115e1836001600160a01b038416611cfb565b81546000908210611c5a5760405162461bcd60e51b8152600401808060200182810382526022815260200180611ff26022913960400191505060405180910390fd5b826000018281548110611c6957fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6060611ca78484600085611dc1565b90505b9392505050565b6000611cbd8383611c7c565b611cf3575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556115e4565b5060006115e4565b60008181526001830160205260408120548015611db75783546000198083019190810190600090879083908110611d2e57fe5b9060005260206000200154905080876000018481548110611d4b57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611d7b57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506115e4565b60009150506115e4565b606082471015611e025760405162461bcd60e51b81526004018080602001828103825260268152602001806120866026913960400191505060405180910390fd5b611e0b85611f1d565b611e5c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611e9b5780518252601f199092019160209182019101611e7c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611efd576040519150601f19603f3d011682016040523d82523d6000602084013e611f02565b606091505b5091509150611f12828286611f23565b979650505050505050565b3b151590565b60608315611f32575081611caa565b825115611f425782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f8c578181015183820152602001611f74565b50505050905090810190601f168015611fb95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180606001604052806000815260200160006001600160a01b0316815260200160608152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5349474e45525369676e657220616e64207369676e617475726520646f206e6f74206d617463686d73672076616c75652063616e2774206265206c657373207468616e20616d6f756e745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220cd3cc7ef77da7d4d4208832e2d4bbf7eb61779471cee6103494dbcc16383d52b64736f6c63430006060033"
}
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.bttcscan.com/api
?module=proxy
&action=eth_getStorageAt
&address=0x8abd8c92F1901cf204590c16b5EF690a35b3741E
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
address | the |
position | the hex code of the position in storage, eg |
tag | the |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x0000000000000000000000000000000000000000000000000000000000000001"
}
eth_gasPrice
Returns the current price per gas in wei.
https://api.bttcscan.com/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
No parameters required.
Sample Response
{
"jsonrpc":"2.0",
"id":73,
"result":"0x3b9aca00"
}
📖 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.bttcscan.com/api
?module=proxy
&action=eth_estimateGas
&data=0x4e71d92d
&to=0xbd55ae392f5abbc10eff7d6610b5b2d32293c418
&value=0xff22
&gasPrice=0x51da038cc
&gas=0x5f5e0ff
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
data | the hash of the method signature and encoded parameters |
to | the |
value | the value sent in this transaction, in hex eg. |
gas | the amount of gas provided for the transaction, in hex eg. |
gasPrice | 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"
}
Last updated