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.Mint Delegation Token
Mint Child Delegation Token
Freeze
Unfreeze
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
Browser-Mediated Signing Grant (Recommended)
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
drainSubAccount, withdrawFromSubAccount) and signing-grant minting (createSubAccountSigningGrant).