Initialize wallet signing

Sets up Managed custody for the project's named provider by creating its active signing configuration and first wallet.

POST/v1/wallets/initializeRun in dashboard

Production projects use BYOK only: there this returns 403 with details.reason custody_mode_not_allowed, and wallets are created in a Custody Connection with POST /v1/wallets and connectionId.

Requires an API key with the wallets.configure action.

Headers

  • x-project-id · string · min length 1 · example prj_example

    Required for dashboard sessions. API keys use their assigned project.

  • Idempotency-Key · string

    Use a unique 1–255 printable ASCII key per operation. Reuse it with the same request on retries. An in-flight attempt returns 409; a changed request returns 422. Retry and recovery rules.

Request body

application/json · required

Initialize wallet signing provider for the project resolved from the request context.

One of:

  • provider: "local"

    • provider · string · required · always local

    • walletLabel · string · max length 100

  • provider: "fireblocks"

    • provider · string · required · always fireblocks

    • walletLabel · string · max length 100

  • provider: "privy"

    • provider · string · required · always privy

    • requestDelayMs · integer · min 0 · max 3000

    • walletLabel · string · max length 100

  • provider: "coinbase_cdp"

    • provider · string · required · always coinbase_cdp

    • network · string · one of solana, solana-devnet

    • accountPolicy · string · pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

    • walletLabel · string · max length 100

  • provider: "para"

    • provider · string · required · always para

    • requestDelayMs · integer · min 0 · max 3000

    • walletLabel · string · max length 100

  • provider: "turnkey"

    • provider · string · required · always turnkey

    • requestDelayMs · integer · min 0 · max 3000

    • walletLabel · string · max length 100

  • provider: "dfns"

    • provider · string · required · always dfns

    • network · string · one of Solana, SolanaDevnet

    • walletLabel · string · max length 100

  • provider: "ibm_haven"

    • provider · string · required · always ibm_haven

    • network · string · one of Solana, SolanaDevnet

    • walletLabel · string · max length 100

  • provider: "anchorage"

    • provider · string · required · always anchorage

    • walletLabel · string · max length 100

    • network · string · one of solana, solana-devnet

  • provider: "utila"

    • provider · string · required · always utila

    • walletLabel · string · max length 100

Responses

  • 201 Wallet signing initialized

    • configId · string · required · example cfg_example

      Created wallet signing config ID.

    • publicKey · string · required · min length 32 · max length 44 · example So11111111111111111111111111111111111111112

      Public key of the provisioned root wallet.

    • walletId · string · required · min length 1 · example privy_wallet_123

      Provider wallet ID of the provisioned root wallet.

  • 400 Bad Request

    • error · object · required

      Standard error payload.

      • code · string · required

        Machine-readable error code.

      • message · string · required

        Human-readable error message.

      • details · object

        Optional error details for debugging.

        • * · any
    • meta · object

      • requestId · string · min length 1 · example req_example

        Request identifier for tracing.

  • 401 Unauthorized

    Same fields as 400.

  • 403 Forbidden. Requires the wallets.configure action: an API key must hold it (a module's manage or execute also covers its read), and a signed-in member's organization role must include it. Without it the error is INSUFFICIENT_PERMISSIONS and error.details.action names the action. Any other 403 names its own reason. Forbidden: the caller lacks the route's action or the API key is wallet-scoped, or custody setup was refused. A refusal's details.reason names the failed check: custody_mode_not_allowed when a Production project names Managed custody (Production is BYOK only), custody_provider_not_in_release_channel, or provider_not_entitled.

    Same fields as 400.

  • 404 Not Found

    Same fields as 400.

  • 409 Conflict

    Same fields as 400.

  • 422 Unprocessable Entity

    Same fields as 400.

  • 500 Internal Server Error

    Same fields as 400.

  • 503 PROVIDER_NOT_CONFIGURED: the deployment holds no credentials for the provider in the project's environment (details.reason provider_not_configured).

    Same fields as 400.

Example request

curl -X POST 'https://api.solana.com/v1/wallets/initialize' \
  -H "Authorization: Bearer $SDP_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "local"
  }'

Example responses

{
  "configId": "cfg_example",
  "publicKey": "So11111111111111111111111111111111111111112",
  "walletId": "privy_wallet_123"
}

Error responses use the standard error shape.

Is this page helpful?