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-testnet.ftmscan.com/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Try this endpoint in your browser
Sample response
{
"jsonrpc":"2.0",
"id":83,
"result":"0x6abca2"
}
eth_getBlockByNumber
Returns information about a block by block number.
https://api-testnet.ftmscan.com/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0x6abca2
&boolean=true
&apikey=YourApiKeyToken
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"difficulty":"0x0",
"extraData":"0x",
"gasLimit":"0xffffffffffff",
"gasUsed":"0x3c7c5",
"hash":"0x0000177a000010eae37df3d8cf1b6e4d483b4b54761ff4e1328ce36445760c29",
"logsBloom":"0x20000000000000000000000000020000000000000000000000000000000000000000000000000000800010000000000000000000000000000000000002000000000000000000000000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000001000008001000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000200000000000000000000000000000",
"miner":"0x0000000000000000000000000000000000000000",
"mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce":"0x0000000000000000",
"number":"0x6abca2",
"parentHash":"0x0000177a000010deae56f34d0450adc82b2efd458c2b6a7f700eda9bbc992fe2",
"receiptsRoot":"0x0000000000000000000000000000000000000000000000000000000000000000",
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size":"0x2fc",
"stateRoot":"0xcf536d261b276da079300cf452cd674a93f29f0414bfa372cd886007d732356a",
"timestamp":"0x61f3c83c",
"timestampNano":"0x16ce6916b7daa433",
"totalDifficulty":"0x0",
"transactions":[
{
"blockHash":"0x0000177a000010eae37df3d8cf1b6e4d483b4b54761ff4e1328ce36445760c29",
"blockNumber":"0x6abca2",
"from":"0xa4797724514f03b2b806afbad699bbd4226ce639",
"gas":"0x41d2a",
"gasPrice":"0x2e919bc340",
"hash":"0x642ecb648914fbfa29a863ef026f486d76fadb9481864f6f199cfe1874f39c02",
"input":"0xcdf7b4e8000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce":"0x0",
"to":"0x602dc93ec951b3830ffe62e3d642dff20f4959d5",
"transactionIndex":"0x0",
"value":"0x53444835ec580000",
"type":"0x0",
"v":"0x1f67",
"r":"0x3f568aca0ff690049aa6a1e0bdf79ebec198700203bc4c484b97739a1221be94",
"s":"0x1ee6e47379e141f9878945e49cb8e44c503ed67eb85064eb1d0bebe92e656633"
}
],
"transactionsRoot":"0x3921d413ab3192e5a3ad27ba4b38c011f2d4f06ece3ebda1abd24f6b61500618",
"uncles":[
]
}
}
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
https://api-testnet.ftmscan.com/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x6abca2
&apikey=YourApiKeyToken
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x1"
}
eth_getTransactionByHash
Returns information about a transaction requested by transaction hash.
https://api-testnet.ftmscan.com/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0x642ecb648914fbfa29a863ef026f486d76fadb9481864f6f199cfe1874f39c02
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x0000177a000010eae37df3d8cf1b6e4d483b4b54761ff4e1328ce36445760c29",
"blockNumber":"0x6abca2",
"from":"0xa4797724514f03b2b806afbad699bbd4226ce639",
"gas":"0x41d2a",
"gasPrice":"0x2e919bc340",
"hash":"0x642ecb648914fbfa29a863ef026f486d76fadb9481864f6f199cfe1874f39c02",
"input":"0xcdf7b4e8000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce":"0x0",
"to":"0x602dc93ec951b3830ffe62e3d642dff20f4959d5",
"transactionIndex":"0x0",
"value":"0x53444835ec580000",
"type":"0x0",
"v":"0x1f67",
"r":"0x3f568aca0ff690049aa6a1e0bdf79ebec198700203bc4c484b97739a1221be94",
"s":"0x1ee6e47379e141f9878945e49cb8e44c503ed67eb85064eb1d0bebe92e656633"
}
}
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
https://api-testnet.ftmscan.com/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0x6abca2
&index=0x0
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x0000177a000010eae37df3d8cf1b6e4d483b4b54761ff4e1328ce36445760c29",
"blockNumber":"0x6abca2",
"from":"0xa4797724514f03b2b806afbad699bbd4226ce639",
"gas":"0x41d2a",
"gasPrice":"0x2e919bc340",
"hash":"0x642ecb648914fbfa29a863ef026f486d76fadb9481864f6f199cfe1874f39c02",
"input":"0xcdf7b4e8000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce":"0x0",
"to":"0x602dc93ec951b3830ffe62e3d642dff20f4959d5",
"transactionIndex":"0x0",
"value":"0x53444835ec580000",
"type":"0x0",
"v":"0x1f67",
"r":"0x3f568aca0ff690049aa6a1e0bdf79ebec198700203bc4c484b97739a1221be94",
"s":"0x1ee6e47379e141f9878945e49cb8e44c503ed67eb85064eb1d0bebe92e656633"
}
}
eth_getTransactionCount
Returns the number of transactions performed by an address.
https://api-testnet.ftmscan.com/api
?module=proxy
&action=eth_getTransactionCount
&address=0x9b2bb6290fb910a960ec344cdf2ae60ba89647f6
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x330848"
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the Fantom network.
https://api-testnet.ftmscan.com/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0xf904808000831cfde080
&apikey=YourApiKeyToken
Sample Response
{
"id":1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
Use eth_getTransactionReceipt to retrieve full details.
eth_getTransactionReceipt
Returns the receipt of a transaction that has been validated.
https://api-testnet.ftmscan.com/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0xc3d3f107271540015f05f62f1520c53919e79e466ff03d1bf3164310d5678555
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x0000177a000015f1af9fae3c2df11b8869e48588255759b5405250dae1a5a23d",
"blockNumber":"0x6abd21",
"contractAddress":null,
"cumulativeGasUsed":"0x5208",
"from":"0x9b2bb6290fb910a960ec344cdf2ae60ba89647f6",
"gasUsed":"0x5208",
"logs":[
],
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status":"0x1",
"to":"0x177ae94c3a8a15a31e8ccab8c295e5cbf6452050",
"transactionHash":"0xc3d3f107271540015f05f62f1520c53919e79e466ff03d1bf3164310d5678555",
"transactionIndex":"0x0",
"type":"0x0"
}
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
https://api-testnet.ftmscan.com/api
?module=proxy
&action=eth_call
&to=0x1f920425189eb0d757ef19760ca3db34b4d77ee0
&data=0xc9807539000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000200010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000e05bd155f6eeb6ea963959d29d9eebef0001c9df05010003020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000c578a54000000000000000000000000000000000000000000000000000000000c5b25a0000000000000000000000000000000000000000000000000000000000c5b25a0000000000000000000000000000000000000000000000000000000000c5bd84c00000000000000000000000000000000000000000000000000000000000000028b5c964a3ccb837ec377196cb4e626a98f88a7c8cb2e241fa5e88c94deec046f457d86fe0149908258c865531608614f1600351a91baee2bbaec3d5fda3fc847000000000000000000000000000000000000000000000000000000000000000248c0c79e7c659f232785a47471c35bd5a8f37b031bb00fd09883573caba55b9c63b87dea68615f385058b9faa5cfc5b35f7d3a929ed66f3d7fa56388ede7908b
&tag=latest
&apikey=YourApiKeyToken
Query Parameters
⛽ 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.ftmscan.com/api
?module=proxy
&action=eth_getCode
&address=0x74238F2CEB3bc017Dd728530a2A84f59bD7Aa420
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063824cf06c11610066578063824cf06c146101b15780638da5cb5b146101bb578063d0048764146101ef578063f2fde38b14610247578063f98fe16b1461028b5761009e565b806304dfc0ff146100a35780633e2b6ad8146100fb5780633efe431b1461011957806363ea3cb114610173578063715018a6146101a7575b600080fd5b6100e5600480360360208110156100b957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102e3565b6040518082815260200191505060405180910390f35b6101036103ae565b6040518082815260200191505060405180910390f35b61015b6004803603602081101561012f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610479565b60405180821515815260200191505060405180910390f35b61017b610499565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101af6104bd565b005b6101b961062a565b005b6101c3610ce7565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102316004803603602081101561020557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d10565b6040518082815260200191505060405180910390f35b6102896004803603602081101561025d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ddb565b005b6102cd600480360360208110156102a157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fcd565b6040518082815260200191505060405180910390f35b60007f000000000000000000000000fd2709c79448cdfacfcc7461daab2e3a5026899d73ffffffffffffffffffffffffffffffffffffffff1663807bf229836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561036c57600080fd5b505afa158015610380573d6000803e3d6000fd5b505050506040513d602081101561039657600080fd5b81019080805190602001909291905050509050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561043957600080fd5b505afa15801561044d573d6000803e3d6000fd5b505050506040513d602081101561046357600080fd5b8101908080519060200190929190505050905090565b60026020528060005260406000206000915054906101000a900460ff1681565b7f000000000000000000000000fd2709c79448cdfacfcc7461daab2e3a5026899d81565b6104c5611098565b73ffffffffffffffffffffffffffffffffffffffff166104e3610ce7565b73ffffffffffffffffffffffffffffffffffffffff161461056c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600454421015610685576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806117936022913960400191505060405180910390fd5b60007f000000000000000000000000fd2709c79448cdfacfcc7461daab2e3a5026899d73ffffffffffffffffffffffffffffffffffffffff166321cda790336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561070e57600080fd5b505afa158015610722573d6000803e3d6000fd5b505050506040513d602081101561073857600080fd5b81019080805190602001909291905050501161079f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806117416031913960400191505060405180910390fd5b7f000000000000000000000000fd2709c79448cdfacfcc7461daab2e3a5026899d73ffffffffffffffffffffffffffffffffffffffff166321cda790336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561082657600080fd5b505afa15801561083a573d6000803e3d6000fd5b505050506040513d602081101561085057600080fd5b8101908080519060200190929190505050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156108ea57600080fd5b505afa1580156108fe573d6000803e3d6000fd5b505050506040513d602081101561091457600080fd5b8101908080519060200190929190505050101561097c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260408152602001806117016040913960400191505060405180910390fd5b60001515600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610a25576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806116b96022913960400191505060405180910390fd5b6000610bbc7f000000000000000000000000fd2709c79448cdfacfcc7461daab2e3a5026899d73ffffffffffffffffffffffffffffffffffffffff1663807bf229336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610ab157600080fd5b505afa158015610ac5573d6000803e3d6000fd5b505050506040513d6020811015610adb57600080fd5b81019080805190602001909291905050507f000000000000000000000000fd2709c79448cdfacfcc7461daab2e3a5026899d73ffffffffffffffffffffffffffffffffffffffff1663624601b6336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610b7357600080fd5b505afa158015610b87573d6000803e3d6000fd5b505050506040513d6020811015610b9d57600080fd5b81019080805190602001909291905050506110a090919063ffffffff16565b90506000610be76064610bd9603c8561112890919063ffffffff16565b6111ae90919063ffffffff16565b9050610c363382600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112379092919063ffffffff16565b6001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fffb850563198a11d6e2d05e1004acdc5f0e03d408a5f265106599abd0a4d5a543382604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60007f000000000000000000000000fd2709c79448cdfacfcc7461daab2e3a5026899d73ffffffffffffffffffffffffffffffffffffffff166321cda790836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610d9957600080fd5b505afa158015610dad573d6000803e3d6000fd5b505050506040513d6020811015610dc357600080fd5b81019080805190602001909291905050509050919050565b610de3611098565b73ffffffffffffffffffffffffffffffffffffffff16610e01610ce7565b73ffffffffffffffffffffffffffffffffffffffff1614610e8a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f10576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806116936026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f000000000000000000000000fd2709c79448cdfacfcc7461daab2e3a5026899d73ffffffffffffffffffffffffffffffffffffffff1663624601b6836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561105657600080fd5b505afa15801561106a573d6000803e3d6000fd5b505050506040513d602081101561108057600080fd5b81019080805190602001909291905050509050919050565b600033905090565b60008082840190508381101561111e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60008083141561113b57600090506111a8565b600082840290508284828161114c57fe5b04146111a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806117726021913960400191505060405180910390fd5b809150505b92915050565b6000808211611225576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161122e57fe5b04905092915050565b6112d48363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506112d9565b505050565b606061133b826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166113c89092919063ffffffff16565b90506000815111156113c35780806020019051602081101561135c57600080fd5b81019080805190602001909291905050506113c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611669602a913960400191505060405180910390fd5b5b505050565b60606113d784846000856113e0565b90509392505050565b60608247101561143b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806116db6026913960400191505060405180910390fd5b61144485611589565b6114b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061150657805182526020820191506020810190506020830392506114e3565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611568576040519150601f19603f3d011682016040523d82523d6000602084013e61156d565b606091505b509150915061157d82828661159c565b92505050949350505050565b600080823b905060008111915050919050565b606083156115ac57829050611661565b6000835111156115bf5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561162657808201518184015260208101905061160b565b50505050905090810190601f1680156116535780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737355736572206861766520616c7265616479206d61646520746865697220636c61696d416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c546865726520617265206e6f7420656e6f756768204655525920746f6b656e7320746f207472616e736665722e20436f6e74726163742069732062726f6b656e596f7520646964206e6f7420706172746963697061746520696e2074686520496e697469616c20546f6b656e2053616c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7744756d6d7920546f6b656e20436c61696d2068617320737461727465642079657421a2646970667358221220197c37414249fa509e206d8676140403976d053a0d4954fd0e6246a6b8ecc17964736f6c634300060c0033"
}
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.ftmscan.com/api
?module=proxy
&action=eth_getStorageAt
&address=0x0E57eAd9E90f94793465c98C7b3b08a76158Da20
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x46616e746f6d6f6e2047656e310000000000000000000000000000000000001a"
}
eth_gasPrice
Returns the current price per gas in wei.
https://api-testnet.ftmscan.com/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":73,
"result":"0x2e919bc340"
}
eth_estimateGas
Makes a call or transaction, which won't be added to the blockchain and returns the gas used.
https://api-testnet.ftmscan.com/api
?module=proxy
&action=eth_estimateGas
&data=0x430468440000000000000000000000000000000000000000000000000000000000000001
&to=0x152c5792e0446d5860ed5bbccbad239ab3e59463
&value=0xff22
&gasPrice=0x2e919bc340
&gas=0xEA4E8
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x1fc7c"
}