client.wallet.listTransactions
List wallet transactions for a workspace
Signature
class Client {
wallet: {
listTransactions(workspaceId: string, query?: {
limit?: number
cursor?: string
}): Promise<WalletTransactionList>
}
}
Parameters
| Name | Type | Required | Notes |
|---|---|---|---|
| workspaceId | | Yes | Workspace ID |
| query | | No | Query options (limit, cursor for pagination) |
Throws
— workspace not foundNotFoundError
Examples
import { Client } from '@blueforge/client'
const bf = new Client({ apiKey: process.env.BF_API_KEY!, url: 'https://your-project.blueforge.dev' })
const { transactions, nextCursor } = await bf.wallet.listTransactions('ws_abc', { limit: 20 })
Pitfalls
- Cursor-based pagination — use the
value from the response to fetch the next page; there is no page number or offsetnextCursor
See also
client.wallet.getBalance
Tested against
- Unit:
packages/client/src/__tests__/wallet.test.ts