client.wallet.getAutoRefill
Get auto-refill configuration for a workspace
Signature
class Client {
wallet: {
getAutoRefill(workspaceId: string): Promise<{ config: AutoRefillConfig | null }>
}
}
Parameters
| Name | Type | Required | Notes |
|---|---|---|---|
| workspaceId | | Yes | Workspace ID |
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 { config } = await bf.wallet.getAutoRefill('ws_abc')
Pitfalls
- Null config — returns
if no auto-refill has been configured; this is not an error{ config: null }
See also
client.wallet.configureAutoRefillclient.wallet.createRefillSession
Tested against
- Unit:
packages/client/src/__tests__/wallet.test.ts