Skip to main content

SDK Sub Accounts

The SDK exposes first-class methods for sub-account operations.

Methods

Create

List and Inspect

Merchant TTL Policy

Use merchant TTL policy to control max TTL ceilings for signing grants, automation tokens, and child delegation tokens.
All TTL-bearing endpoints validate against the merchant’s effective policy and platform hard caps.

Mint Delegation Token

Mint Child Delegation Token

Freeze

Unfreeze

Unfreeze guardrails: only frozen sub-accounts can be unfrozen, and previously revoked delegation tokens remain revoked.

Drain to Merchant Wallet

Withdraw to External Address

signing_grant and passkey_signature are mutually exclusive. passkey_signature is now optional for withdrawFromSubAccount and should only be used as an interactive fallback.

Withdraw to Bank (One-Shot)

bank_id accepts a bank identifier value (PAJ bank id, bank code, or bank name). This method mirrors split bank-withdraw proxy-email OTP automation, so no manual OTP entry is required in your integration. automation_token and delegation_token are mutually exclusive. signing_grant and passkey_signature are mutually exclusive. passkey_signature is now optional for withdrawSubAccountToBank and should only be used as an interactive fallback.

Mint Automation Token (Session Auth)

Revoke Automation Token

Mint Signing Grant (Session Auth)

Policies

Webhook Triggers

Execution Intents

Balance Rules

Use this signingGrant in withdrawFromSubAccount or withdrawSubAccountToBank.

Frontend Browser Example

Use this pattern in a dashboard/web app where a user clicks a button to approve with passkey.

Revoke Signing Grant

Close

Passkey Signature Shape

Use this payload for sensitive transfer methods (drainSubAccount, withdrawFromSubAccount) and signing-grant minting (createSubAccountSigningGrant).