We're now supporting Polygon zkEVM!
Learn more here.
The API credit value for this method is 500 . To learn more about API credits and each method's value, visit the API Credits page.
Parameters:
Returns:
Pending - An array of transaction objects, with following fields:
address - The address initiating a transaction
nonce - The nonce of the sending address
blockHash - The hash of the block where this transaction was in, null here
blockNumber - The block number where this transaction was added encoded as a hexadecimal, null here
from - The address of the sender
gas - The total amount of gas units used in the transaction
gasPrice - The total amount in wei the sender is willing to pay for the transaction
maxFeePerGas - The maximum amount of gas willing to be paid for the transaction
maxPriorityFeePerGas - The maximum amount of gas to be included as a tip to the miner
hash - The hash of the transaction
input - The encoded transaction input data
nonce - The number of transactions the sender has sent till now
to - The address of the receiver. null when its a contract creation transaction
transactionIndex - An integer of the transactions index position in the block encoded as a hexadecimal format
value - The value transferred in Wei encoded as a hexadecimal format
type - A number between 0 and 0x7f, for a total of 128 possible transaction types
accesslist - A list of addresses and storage keys that the transaction plans to access, introduced in EIP-2929
chainId - It returns a hexadecimal value in string format which represents an integer of the chain ID
v - The ECDSA recovery id encoded as a hexadecimal format
r - The ECDSA signature r
s - The ECDSA signature s
Queued - An array of transaction objects, with following fields:
address - The address initiating a transaction
nonce - The nonce of the sending address
blockHash - The hash of the block where this transaction was in, null here
blockNumber - The block number where this transaction was added encoded as a hexadecimal, null here
from - The address of the sender
gas - The total amount of gas units used in the transaction
gasPrice - The total amount in wei the sender is willing to pay for the transaction
maxFeePerGas - The maximum amount of gas willing to be paid for the transaction
maxPriorityFeePerGas - The maximum amount of gas to be included as a tip to the miner
hash - The hash of the transaction
input - The encoded transaction input data
nonce - The number of transactions the sender has sent till now
to - The address of the receiver. null when its a contract creation transaction
transactionIndex - An integer of the transactions index position in the block encoded as a hexadecimal format
value - The value transferred in Wei encoded as a hexadecimal format
type - A number between 0 and 0x7f, for a total of 128 possible transaction types
accesslist - A list of addresses and storage keys that the transaction plans to access, introduced in EIP-2929
chainId - It returns a hexadecimal value in string format which represents an integer of the chain ID
v - The ECDSA recovery id encoded as a hexadecimal format
r - The ECDSA signature r
s - The ECDSA signature s
Code Examples:
var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); var raw = JSON.stringify({ "method": "txpool_content", "params": [], "id": 1, "jsonrpc": "2.0" }); var requestOptions = { method: 'POST', headers: myHeaders, body: raw, redirect: 'follow' }; fetch("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
from web3 import HTTPProvider client = HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/') params = [] response = client.make_request('txpool_content', params) print(response)
curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"txpool_content","params":[],"id":1,"jsonrpc":"2.0"}'
require "uri" require "json" require "net/http" url = URI("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = "application/json" request.body = JSON.dump({ "method": "txpool_content", "params": [], "id": 1, "jsonrpc": "2.0" }) response = https.request(request) puts response.read_body
require 'eth' client = Eth::Client.create 'http://sample-endpoint-name.network.quiknode.pro/token-goes-here/' payload = { "jsonrpc": "2.0", "method": "txpool_content", "params": [], "id": "1" } response = client.send(payload.to_json) puts response
import requests import json url = "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/" payload = json.dumps({ "method": "txpool_content", "params": [], "id": 1, "jsonrpc": "2.0" }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
const ethers = require("ethers"); (async () => { const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/"); const response = await provider.send("txpool_content", []); console.log(response); })();