getTxpoolContent
Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only. Read more.
Usage
ts
import { testClient } from './client'
const content = await testClient.getTxpoolContent()
import { testClient } from './client'
const content = await testClient.getTxpoolContent()
ts
import { createTestClient, http } from 'viem'
import { foundry } from 'viem/chains'
export const testClient = createTestClient({
chain: foundry,
mode: 'anvil',
transport: http(),
})
import { createTestClient, http } from 'viem'
import { foundry } from 'viem/chains'
export const testClient = createTestClient({
chain: foundry,
mode: 'anvil',
transport: http(),
})
Returns
Transaction pool content. See here.