Skip to content

WalletActions.getCallsHistory

Viem Action for retrieving call bundle history for an account. Uses wallet_getCallsHistory under the hood.

Usage

example.ts
import { WalletActions } from 'porto/viem'
import { client } from './config'
 
const history = await WalletActions.getCallsHistory(client, { 
  address: '0x1234...', // Account address 
  limit: 20, // Maximum bundles to fetch 
  sort: 'desc', // Most recent first 
}) 

Parameters

address

  • Type: Address

Account address to fetch history for.

index

  • Type: number | undefined

Optional cursor. Defaults to 0 for ascending or the latest index for descending.

limit

  • Type: number

Number of bundles to return.

sort

  • Type: 'asc' | 'desc'

Ordering of bundles. Use 'desc' for most recent first.

Return Value

See wallet_getCallsHistory.