getAccountPendingTransactions
Get ht pending transactions in pool by address.
Usage
example.ts
import { publicClient } from "./client";
const pendingTx = await publicClient.getAccountPendingTransactions({
address: "cfx:...",
});
Returns
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,
});