Geth/Parity Proxy
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.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":"0x160b3e5"
}
eth_getBlockByNumber
Returns information about a block by block number.
https://api-testnet.bttcscan.com/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0x160b3e5
&boolean=true
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
tag | the block number, in hex eg. |
boolean | the when |
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"difficulty":"0x7",
"extraData":"0xd883010008846274746388676f312e31392e34856c696e7578000000000000007b256a1cb2c488803bb679556345b29bc7594f9239acd2608765d5fe4b67f4537e464355e5a22a37d58209536b0a0bb518ad898d88319a0216bb3d022850547900",
"gasLimit":"0x1312d00",
"gasUsed":"0x0",
"hash":"0x1cf71048cc681defe7d4d9c99a97094f4d5463ad3aaf3080d746cb354ae5d8fa",
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner":"0x0000000000000000000000000000000000000000",
"mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce":"0x0000000000000000",
"number":"0x160b3e5",
"parentHash":"0x4fd0f815927549367db4b38d0c41c43c292238ec7b4831a33d4291f2a376653d",
"receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size":"0x263",
"stateRoot":"0xbc422f116cce5847498b80f87267c841a7997d72ea03568420063351a95108ce",
"timestamp":"0x6481889e",
"totalDifficulty":"0xa2bb548",
"transactions":[
],
"transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles":[
]
}
}
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
https://api-testnet.bttcscan.com/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x160b3e5
&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-testnet.bttcscan.com/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0x5c5ac547e80862c5235f21c68f03b2be319e3e9613eb7046369fc4425d03d797
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
txhash | the |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0xcbe616ad7e84e70056af42ba8f1e9754458500b324e2f5bb6d2d70e87d2c673f",
"blockNumber":"0x160568f",
"from":"0x342ef59cdaf8ed9bcd2acb6d2633d15641c07cad",
"gas":"0x381fd",
"gasPrice":"0x1ff973cafa8000",
"hash":"0x5c5ac547e80862c5235f21c68f03b2be319e3e9613eb7046369fc4425d03d797",
"input":"0x2e1a7d4d00000000000000000000000000000000000000000000000017209eaba1c86000",
"nonce":"0x7",
"to":"0xb06649e2d93d33a43e98f5318190bd5dfe0532ed",
"transactionIndex":"0x0",
"value":"0x0",
"type":"0x0",
"v":"0x82d",
"r":"0x4eb59326ab93bdc4fd58e90945693f406b52daeeedac2ba345e941a1153bb773",
"s":"0x35beff2dd807e7534cc4955cea6306edcdd9f122f67fc1f76ea55940869cfa8d"
}
}
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
https://api-testnet.bttcscan.com/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0x1609900
&index=0x0
&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":"0xfd143f1309431ffcdd3097c346e62d0229767f6682595cb2ecd696c229e1962f",
"blockNumber":"0x1609900",
"from":"0x9e1004ffa22fefa228664032048a543b1378d815",
"gas":"0x8dc5",
"gasPrice":"0x1ff973cafa8000",
"hash":"0x71fe190b654b11016f2072f3083cc5f14a93f91898ef493a64da249a2c532c01",
"input":"0x205c28780000000000000000000000009e1004ffa22fefa228664032048a543b1378d8150000000000000000000000000000000000000000000000000de0b6b3a7640000",
"nonce":"0x40",
"to":"0xd9dcae335acd3d4ffd2e6915dc702a59136ab46f",
"transactionIndex":"0x0",
"value":"0x0",
"type":"0x0",
"v":"0x82d",
"r":"0xa793bbbba1716eb2c9e58008495c8c4cccc6ca0817e20bcc1aa842d252db657b",
"s":"0x2108a74eb0c9d85ac79a59deab36cbb1706770eddf7b124d690f16ddf46d255e"
}
}
eth_getTransactionCount
Returns the number of transactions performed by an address.
https://api-testnet.bttcscan.com/api
?module=proxy
&action=eth_getTransactionCount
&address=0x9e1004ffa22fefa228664032048a543b1378d815
&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":"0x4b"
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the BTTC Chain network.
https://api-testnet.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-testnet.bttcscan.com/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0x2d4cbcdef18c2fb531b8b2d7834b3503a7d60ba21d127fa69390bb83a2a5b0f5
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|---|
txhash | the |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0xfd143f1309431ffcdd3097c346e62d0229767f6682595cb2ecd696c229e1962f",
"blockNumber":"0x1609900",
"contractAddress":null,
"cumulativeGasUsed":"0x0",
"effectiveGasPrice":"0x0",
"from":"0x0000000000000000000000000000000000000000",
"gasUsed":"0x0",
"logs":[
{
"address":"0x0000000000000000000000000000000000001010",
"topics":[
"0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
"0x0000000000000000000000000000000000000000000000000000000000001010",
"0x0000000000000000000000000000000000000000000000000000000000001010",
"0x0000000000000000000000009e1004ffa22fefa228664032048a543b1378d815"
],
"data":"0x0000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000001e7fabd664bad856f953c11e363a3000000000000000000000000000000000000000000082978b9b1bd6d022efc72000000000000000000000000000000000001e7fabd664bad69ae27d4c31b63a3000000000000000000000000000000000000000000082978d5732ad450f6fc72",
"blockNumber":"0x1609900",
"transactionHash":"0x2d4cbcdef18c2fb531b8b2d7834b3503a7d60ba21d127fa69390bb83a2a5b0f5",
"transactionIndex":"0x1",
"blockHash":"0xfd143f1309431ffcdd3097c346e62d0229767f6682595cb2ecd696c229e1962f",
"logIndex":"0x3",
"removed":false
},
{
"address":"0x0000000000000000000000000000000000001010",
"topics":[
"0x4e2ca0515ed1aef1395f66b5303bb5d6f1bf9d61a353fa53f73f8ac9973fa9f6",
"0x000000000000000000000000d5a8752a5fc64a1ce09df7b195df6b669d09271f",
"0x0000000000000000000000009e1004ffa22fefa228664032048a543b1378d815"
],
"data":"0x0000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000082978b9b1bd6d022efc72000000000000000000000000000000000000000000082978d5732ad450f6fc72",
"blockNumber":"0x1609900",
"transactionHash":"0x2d4cbcdef18c2fb531b8b2d7834b3503a7d60ba21d127fa69390bb83a2a5b0f5",
"transactionIndex":"0x1",
"blockHash":"0xfd143f1309431ffcdd3097c346e62d0229767f6682595cb2ecd696c229e1962f",
"logIndex":"0x4",
"removed":false
},
{
"address":"0x8e009872b8a6d469939139be5e3bbd99a731212f",
"topics":[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000009e1004ffa22fefa228664032048a543b1378d815"
],
"data":"0x000000000000000000000000000000000000000000000000000000000bebc200",
"blockNumber":"0x1609900",
"transactionHash":"0x2d4cbcdef18c2fb531b8b2d7834b3503a7d60ba21d127fa69390bb83a2a5b0f5",
"transactionIndex":"0x1",
"blockHash":"0xfd143f1309431ffcdd3097c346e62d0229767f6682595cb2ecd696c229e1962f",
"logIndex":"0x5",
"removed":false
}
],
"logsBloom":"0x00800000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000008000000008000000080000000000000000000000000000000008000000800000000000000000000100000000000000000000020000000800000000000800000000000000000000000010000000000000000000000000000020000000000000004000000000000000000000000000000000000000000000000000020000000000000000000000000004000000004000000002000000000000000000000000000000000000800000108000000020800000000000800010000000000000000000000000000000080000000000100000",
"status":"0x1",
"to":"0x0000000000000000000000000000000000000000",
"transactionHash":"0x2d4cbcdef18c2fb531b8b2d7834b3503a7d60ba21d127fa69390bb83a2a5b0f5",
"transactionIndex":"0x1",
"type":"0x0"
}
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
https://api-testnet.bttcscan.com/api
?module=proxy
&action=eth_call
&to=0xd9dcae335acd3d4ffd2e6915dc702a59136ab46f
&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-testnet.bttcscan.com/api
?module=proxy
&action=eth_getCode
&address=0xb1dd5e7556d90c0589d56c144df39337d82a1fea
&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":"0x6080604052600436106101b75760003560e01c806336568abe116100ec578063a3b0b5a31161008a578063ca15c87311610064578063ca15c87314610701578063cf2c52cb1461072b578063d547741f146107b8578063dd62ed3e146107f1576101b7565b8063a3b0b5a31461067a578063a457c2d71461068f578063a9059cbb146106c8576101b7565b80639010d07c116100c65780639010d07c146105cb57806391d148541461061757806395d89b4114610650578063a217fddf14610665576101b7565b806336568abe14610526578063395093511461055f57806370a0823114610598576101b7565b806323b872dd116101595780632e1a7d4d116101335780632e1a7d4d146104835780632f2ff15d146104ad578063313ce567146104e65780633408e47014610511576101b7565b806323b872dd146103e3578063248a9ca3146104265780632d0335ab14610450576101b7565b80630f7e5970116101955780630f7e59701461035757806318160ddd1461036c57806320379ee514610393578063205c2878146103a8576101b7565b806306fdde03146101bc578063095ea7b3146102465780630c53c51c14610293575b600080fd5b3480156101c857600080fd5b506101d161082c565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020b5781810151838201526020016101f3565b50505050905090810190601f1680156102385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025257600080fd5b5061027f6004803603604081101561026957600080fd5b506001600160a01b0381351690602001356108c2565b604080519115158252519081900360200190f35b6101d1600480360360a08110156102a957600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156102d457600080fd5b8201836020820111156102e657600080fd5b8035906020019184600183028401116401000000008311171561030857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550508235935050506020810135906040013560ff166108e0565b34801561036357600080fd5b506101d1610be3565b34801561037857600080fd5b50610381610c00565b60408051918252519081900360200190f35b34801561039f57600080fd5b50610381610c06565b3480156103b457600080fd5b506103e1600480360360408110156103cb57600080fd5b506001600160a01b038135169060200135610c0c565b005b3480156103ef57600080fd5b5061027f6004803603606081101561040657600080fd5b506001600160a01b03813581169160208101359091169060400135610c62565b34801561043257600080fd5b506103816004803603602081101561044957600080fd5b5035610cef565b34801561045c57600080fd5b506103816004803603602081101561047357600080fd5b50356001600160a01b0316610d04565b34801561048f57600080fd5b506103e1600480360360208110156104a657600080fd5b5035610d1f565b3480156104b957600080fd5b506103e1600480360360408110156104d057600080fd5b50803590602001356001600160a01b0316610d33565b3480156104f257600080fd5b506104fb610d9f565b6040805160ff9092168252519081900360200190f35b34801561051d57600080fd5b50610381610da8565b34801561053257600080fd5b506103e16004803603604081101561054957600080fd5b50803590602001356001600160a01b0316610dac565b34801561056b57600080fd5b5061027f6004803603604081101561058257600080fd5b506001600160a01b038135169060200135610e0d565b3480156105a457600080fd5b50610381600480360360208110156105bb57600080fd5b50356001600160a01b0316610e61565b3480156105d757600080fd5b506105fb600480360360408110156105ee57600080fd5b5080359060200135610e7c565b604080516001600160a01b039092168252519081900360200190f35b34801561062357600080fd5b5061027f6004803603604081101561063a57600080fd5b50803590602001356001600160a01b0316610ea1565b34801561065c57600080fd5b506101d1610ebf565b34801561067157600080fd5b50610381610f20565b34801561068657600080fd5b50610381610f25565b34801561069b57600080fd5b5061027f600480360360408110156106b257600080fd5b506001600160a01b038135169060200135610f4b565b3480156106d457600080fd5b5061027f600480360360408110156106eb57600080fd5b506001600160a01b038135169060200135610fb9565b34801561070d57600080fd5b506103816004803603602081101561072457600080fd5b5035610fcd565b34801561073757600080fd5b506103e16004803603604081101561074e57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561077957600080fd5b82018360208201111561078b57600080fd5b803590602001918460018302840111640100000000831117156107ad57600080fd5b509092509050610fe4565b3480156107c457600080fd5b506103e1600480360360408110156107db57600080fd5b50803590602001356001600160a01b03166110db565b3480156107fd57600080fd5b506103816004803603604081101561081457600080fd5b506001600160a01b0381358116916020013516611134565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108b85780601f1061088d576101008083540402835291602001916108b8565b820191906000526020600020905b81548152906001019060200180831161089b57829003601f168201915b5050505050905090565b60006108d66108cf61115f565b848461116e565b5060015b92915050565b60606108ea611bef565b50604080516060810182526001600160a01b0388166000818152600a602090815290849020548352820152908101869052610928878287878761125a565b6109635760405162461bcd60e51b8152600401808060200182810382526021815260200180611db86021913960400191505060405180910390fd5b6001600160a01b0387166000908152600a602052604090205461098d90600163ffffffff61133716565b6001600160a01b0388166000818152600a602090815260408083209490945583519283523383820181905260609484018581528b51958501959095528a517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b958d9592948d94919260808501928601918190849084905b83811015610a1c578181015183820152602001610a04565b50505050905090810190601f168015610a495780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a160006060306001600160a01b0316888a6040516020018083805190602001908083835b60208310610a9a5780518252601f199092019160209182019101610a7b565b6001836020036101000a038019825116818451168082178552505050505050905001826001600160a01b03166001600160a01b031660601b8152601401925050506040516020818303038152906040526040518082805190602001908083835b60208310610b195780518252601f199092019160209182019101610afa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610b7b576040519150601f19603f3d011682016040523d82523d6000602084013e610b80565b606091505b509150915081610bd7576040805162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604482015290519081900360640190fd5b98975050505050505050565b604051806040016040528060018152602001603160f81b81525081565b60025490565b60095490565b610c1d610c1761115f565b82611391565b6040805182815290516000916001600160a01b038516917f67b714876402c93362735688659e2283b4a37fb21bab24bc759ca759ae851fd89181900360200190a35050565b6000610c6f848484611499565b610ce584610c7b61115f565b610ce085604051806060016040528060288152602001611d90602891396001600160a01b038a16600090815260016020526040812090610cb961115f565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61160016565b61116e565b5060019392505050565b60009081526006602052604090206002015490565b6001600160a01b03166000908152600a602052604090205490565b610d30610d2a61115f565b82610c0c565b50565b600082815260066020526040902060020154610d5690610d5161115f565b610ea1565b610d915760405162461bcd60e51b815260040180806020018281038252602f815260200180611c5f602f913960400191505060405180910390fd5b610d9b8282611697565b5050565b60055460ff1690565b4690565b610db461115f565b6001600160a01b0316816001600160a01b031614610e035760405162461bcd60e51b815260040180806020018281038252602f815260200180611e68602f913960400191505060405180910390fd5b610d9b8282611706565b60006108d6610e1a61115f565b84610ce08560016000610e2b61115f565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61133716565b6001600160a01b031660009081526020819052604090205490565b6000828152600660205260408120610e9a908363ffffffff61177516565b9392505050565b6000828152600660205260408120610e9a908363ffffffff61178116565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108b85780601f1061088d576101008083540402835291602001916108b8565b600081565b604080516d4445504f5349544f525f524f4c4560901b8152905190819003600e01902081565b60006108d6610f5861115f565b84610ce085604051806060016040528060258152602001611e436025913960016000610f8261115f565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61160016565b60006108d6610fc661115f565b8484611499565b60008181526006602052604081206108da90611796565b604080516d4445504f5349544f525f524f4c4560901b8152905190819003600e01902061101381610d5161115f565b6007906110b35760405162461bcd60e51b81526020600482019081528254600260001961010060018416150201909116046024830181905290918291604490910190849080156110a45780601f10611079576101008083540402835291602001916110a4565b820191906000526020600020905b81548152906001019060200180831161108757829003601f168201915b50509250505060405180910390fd5b506000838360208110156110c657600080fd5b503590506110d485826117a1565b5050505050565b6000828152600660205260409020600201546110f990610d5161115f565b610e035760405162461bcd60e51b8152600401808060200182810382526030815260200180611d3b6030913960400191505060405180910390fd5b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600061116961189d565b905090565b6001600160a01b0383166111b35760405162461bcd60e51b8152600401808060200182810382526024815260200180611e1f6024913960400191505060405180910390fd5b6001600160a01b0382166111f85760405162461bcd60e51b8152600401808060200182810382526022815260200180611cf36022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006001600160a01b0386166112a15760405162461bcd60e51b8152600401808060200182810382526025815260200180611d6b6025913960400191505060405180910390fd5b60016112b46112af876118fb565b611987565b83868660405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561130e573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600082820183811015610e9a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166113d65760405162461bcd60e51b8152600401808060200182810382526021815260200180611dd96021913960400191505060405180910390fd5b6113e2826000836119d3565b61142581604051806060016040528060228152602001611c8e602291396001600160a01b038516600090815260208190526040902054919063ffffffff61160016565b6001600160a01b038316600090815260208190526040902055600254611451908263ffffffff6119d816565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0383166114de5760405162461bcd60e51b8152600401808060200182810382526025815260200180611dfa6025913960400191505060405180910390fd5b6001600160a01b0382166115235760405162461bcd60e51b8152600401808060200182810382526023815260200180611c3c6023913960400191505060405180910390fd5b61152e8383836119d3565b61157181604051806060016040528060268152602001611d15602691396001600160a01b038616600090815260208190526040902054919063ffffffff61160016565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546115a6908263ffffffff61133716565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561168f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561165457818101518382015260200161163c565b50505050905090810190601f1680156116815780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008281526006602052604090206116b5908263ffffffff611a3516565b15610d9b576116c261115f565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600660205260409020611724908263ffffffff611a4a16565b15610d9b5761173161115f565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000610e9a8383611a5f565b6000610e9a836001600160a01b038416611ac3565b60006108da82611adb565b6001600160a01b0382166117fc576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611808600083836119d3565b60025461181b908263ffffffff61133716565b6002556001600160a01b038216600090815260208190526040902054611847908263ffffffff61133716565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000333014156118f55760606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506118f89050565b50335b90565b6000604051806080016040528060438152602001611cb060439139805190602001208260000151836020015184604001518051906020012060405160200180858152602001848152602001836001600160a01b03166001600160a01b03168152602001828152602001945050505050604051602081830303815290604052805190602001209050919050565b6000611991610c06565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b505050565b600082821115611a2f576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000610e9a836001600160a01b038416611adf565b6000610e9a836001600160a01b038416611b29565b81546000908210611aa15760405162461bcd60e51b8152600401808060200182810382526022815260200180611c1a6022913960400191505060405180910390fd5b826000018281548110611ab057fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000611aeb8383611ac3565b611b21575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556108da565b5060006108da565b60008181526001830160205260408120548015611be55783546000198083019190810190600090879083908110611b5c57fe5b9060005260206000200154905080876000018481548110611b7957fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611ba957fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506108da565b60009150506108da565b60405180606001604052806000815260200160006001600160a01b0316815260200160608152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e63654d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652945524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5349474e455245524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655369676e657220616e64207369676e617475726520646f206e6f74206d6174636845524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122022839233a6c6b444e5c9f613c335bccb84338c839b3cccfa4de3bba83a96f4d564736f6c63430006060033"
}
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.bttcscan.com/api
?module=proxy
&action=eth_getStorageAt
&address=0x88d81a35e07c72c01fbe14ce775941cb43231f84
&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":"0x0000000000000000000000000000000000000000000000000000000000000000"
}
eth_gasPrice
Returns the current price per gas in wei.
https://api-testnet.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 BTT 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.bttcscan.com/api
?module=proxy
&action=eth_estimateGas
&data=0x4e71d92d
&to=0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e47
&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":"0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e47"
}
Last updated