Skip to content

getAccountPendingTransactions

Get ht pending transactions in pool by address.

Usage

example.ts
import { publicClient } from "./client";

const pendingTx = await publicClient.getAccountPendingTransactions({
  address: "cfx:...",
});

Returns

AccountPendingTransactions

Parameters

address

  • Type: Address
const pendingTx = await publicClient.getAccountPendingTransactions({
  address: "cfx:...", 
});

nonce (optional)

  • Type: number
const pendingTx = await publicClient.getAccountPendingTransactions({
  address: "cfx:...",
  nonce: 0, 
});

limit (optional)

const pendingTx = await publicClient.getAccountPendingTransactions({
  address: "cfx:...",
  limit: 10, 
});

JSON-RPC Method

cfx_getAccountPendingTransactions