BlueForge Docs

client.wallet.listTransactions

List wallet transactions for a workspace

Signature

class Client {
  wallet: {
    listTransactions(workspaceId: string, query?: {
      limit?: number
      cursor?: string
    }): Promise<WalletTransactionList>
  }
}

Parameters

NameTypeRequiredNotes
workspaceId
string
YesWorkspace ID
query
object
NoQuery options (limit, cursor for pagination)

Throws

  • NotFoundError
    — workspace not found

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
    nextCursor
    value from the response to fetch the next page; there is no page number or offset

See also

  • client.wallet.getBalance

Tested against

  • Unit:
    packages/client/src/__tests__/wallet.test.ts