Parameters:
Returns:
Pending - Total number of pending transactions in the txpool, represented in hexadecimal format.
Queued - Total number of queued transactions in the txpool, represented in hexadecimal format.
Code Examples:
require 'ethereum.rb' client = Ethereum::HttpClient.new('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/') txpool = client.send_command('txpool_status', []) puts txpool["result"]
from web3 import Web3, HTTPProvider provider = Web3.HTTPProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/") result = provider.make_request('txpool_status', []) print(result)
curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"txpool_status","params":[],"id":1,"jsonrpc":"2.0"}'
const ethers = require("ethers"); (async () => { const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/"); const txpool = await provider.send("txpool_status"); console.log(txpool); })();