We're now supporting Polygon zkEVM!
Learn more here.

Contents

txpool_content RPC Method

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:

  1. None

Returns:

  1. Array - A list of pending and queued transactions, with each having the following fields:
  2. 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));
Ready to get started? Create a free account