Custodian
Account

Account

Accounts represent your end users. Creating an account provisions custodial wallet addresses across supported networks. All endpoints on this page require authentication.

Create Account

Provisions a new custodial account and its wallets.

POST /api/v1/account/create

Request Body

FieldTypeRequiredDescription
subIDstringYesYour external identifier for this account (must be unique)
poolTypestringNodedicated or organization_owned. Required for hybrid apps
{
  "subID": "user-123",
  "poolType": "dedicated"
}

Response 200

{
  "message": "success create wallet",
  "data": {
    "status": "pending",
    "subId": "user-123",
    "accountId": "acc_abc123"
  }
}

Response data fields

FieldTypeDescription
statusstringAccount lifecycle: pending (MPC provisioning), active_no_addresses (account exists, wallets not ready), active (wallets available), failed (provisioning failed)
subIdstringYour subID from the request
accountIdstringInternal account UUID (use in webhooks and support tickets)
CodeMeaning
400Invalid JSON or invalid poolType
403App is frozen
409subID already exists for this app
500Wallet creation failed

Get Account

Returns the account and all its wallets.

GET /api/v1/account/:subID

Response 200

{
  "message": "success get account",
  "data": {
    "id": "acc_abc123",
    "subId": "user-123",
    "status": "active",
    "poolType": "dedicated",
    "wallets": [
      {
        "walletId": "wal_1",
        "network": "ethereum",
        "address": "0xabc...",
        "addressType": "evm"
      }
    ]
  }
}

Response data fields

FieldTypeDescription
idstringAccount UUID
subIdstringYour external identifier
statusstringSame values as Create Account
poolTypestringdedicated or organization_owned — which wallet pool this account uses
wallets[]arrayOne entry per network wallet (may be empty while status is pending)
wallets[].walletIdstringWallet UUID (used in invoices, listen, per_wallet balance, withdraw)
wallets[].networkstringNetwork code (e.g. ethereum, tron)
wallets[].addressstringOn-chain deposit address
wallets[].addressTypestringAddress encoding family (e.g. evm, tron)
CodeMeaning
404Account not found

Get Wallet by ID

GET /api/v1/account/:subID/wallet/:walletID

Response 200

{
  "message": "success get wallet",
  "data": {
    "account": {
      "id": "acc_abc123",
      "subId": "user-123",
      "status": "active",
      "poolType": "dedicated"
    },
    "walletId": "wal_1",
    "network": "ethereum",
    "address": "0xabc...",
    "addressType": "evm"
  }
}

Response data fields

FieldTypeDescription
accountobjectSummary of the parent account (id, subId, status, poolType) — same shape as Get Account without wallets
walletIdstringWallet UUID
networkstringNetwork code
addressstringOn-chain address
addressTypestringAddress encoding family
CodeMeaning
404Account or wallet not found

Get Wallet by Network

Returns the account's wallet for a specific network.

GET /api/v1/account/:subID/network/:network

:network is a network code, e.g. ethereum. Response shape matches Get Wallet by ID.

CodeMeaning
404Account or wallet not found

Freeze an account

Stop wallet writes for one account that belongs to your app. This is separate from an app-level freeze (403 app is frozen on Create Account).

The signed API can freeze. It has no call to unfreeze.

POST /api/v1/accounts/:accountId/freeze

:accountId is the account UUID from Get Account (data.id), not subID.

Request body

FieldTypeRequiredDescription
reasonstringYesWhy this account is being frozen. Trimmed. 1–1000 characters
{
  "reason": "suspected fraud"
}

Response 200

{
  "data": {
    "frozen": true,
    "accountId": "acc_abc123",
    "message": "This account is frozen. Withdrawals, sweeps, transfers, and new addresses are stopped until it is unfrozen."
  }
}

Sending freeze again for an account that is already frozen returns the same 200 once the signing service has confirmed it. It does not create a second freeze.

While the account is frozen:

  • A withdrawal that uses a wallet on this account is rejected.
  • A custom transaction from a wallet on this account is rejected.
  • A balance transfer is rejected when the source wallet or the destination wallet belongs to this account.
  • New addresses are not added to this account.
  • Deposits to this account are still credited.
  • Convert still runs. It is an app ledger swap and is not tied to one account.
  • Quotes still run, including withdraw estimate and convert estimate.
  • Creating a different account is unchanged.

A withdrawal or custom transaction that has not been signed yet is rejected. One that is already being signed can still finish.

A per_app withdrawal does not send walletId, so it is not rejected for this reason. A per_wallet withdrawal is rejected when that wallet’s account is frozen.

Codeerror
400A reason is required.
400Reason must be 1000 characters or less.
404Account not found. — unknown id, or the account belongs to another app
502This account is frozen here, but the signing service has not confirmed it yet. Retry this request.

On 502 the account is already frozen for the calls above. Retry the same request until you get 200.

When the account changes state, you also receive an account.frozen webhook. When support unfreezes it, you receive account.unfrozen.

Get freeze status

Read-only. Same authentication as the other account calls.

GET /api/v1/accounts/:accountId/freeze

:accountId is the account UUID.

Response 200 when frozen

{
  "data": {
    "frozen": true,
    "accountId": "acc_abc123",
    "message": "This account is frozen. Withdrawals, sweeps, transfers, and new addresses are stopped until it is unfrozen."
  }
}

Response 200 when active

{
  "data": {
    "frozen": false,
    "accountId": "acc_abc123",
    "message": "This account is active."
  }
}
Codeerror
404Account not found.

Get freeze status by wallet

GET /api/v1/wallets/:walletId/freeze

:walletId is wallets[].walletId from Get Account.

Response 200

Same fields as Get freeze status, plus walletId.

{
  "data": {
    "frozen": true,
    "accountId": "acc_abc123",
    "walletId": "wal_1",
    "message": "This account is frozen. Withdrawals, sweeps, transfers, and new addresses are stopped until it is unfrozen."
  }
}
Codeerror
404Account not found. — unknown wallet, or the wallet belongs to another app