Update wallet
Updates the display label of an active wallet under its exact Config or Connection owner.
PATCH/Run in dashboard
Requires an API key with the wallets.manage action.
Path parameters
-
walletId·string· required · min length 1 · exampleprivy_wallet_123Provider wallet ID — the
walletIdfield returned by GET /v1/wallets.
Headers
-
x-project-id·string· min length 1 · exampleprj_exampleRequired for dashboard sessions. API keys use their assigned project.
-
Idempotency-Key·stringUse 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 returns422. Retry and recovery rules.
Request body
application/json · required
Update wallet request body.
-
label·string | null· max length 100 · exampleTreasury signerOptional wallet label. Set to null to clear the label.
Responses
-
200Wallet updated-
data·object· requiredCreated wallet response payload.
-
wallet·object· requiredWallet details.
-
id·string· required · examplecw_exampleWallet record ID.
-
custodyConfigId·string· examplecfg_exampleOwning custody configuration ID.
-
custodyConnectionId·string· examplecconn_exampleOwning Custody Connection ID.
-
provider·string· one oflocal,fireblocks,privy,coinbase_cdp,para,turnkey,dfns,ibm_haven,anchorage,utila· exampleprivyWallet signing provider.
-
isRuntimeExecutionAllowed·boolean· required · exampletrueWhether SDP currently permits attempting runtime execution through this wallet's owner. This is request-time admission, not Provider health or a success guarantee.
-
walletId·string· required · min length 1 · exampleprivy_wallet_123Provider wallet ID.
-
publicKey·string· required · min length 32 · max length 44 · exampleSo11111111111111111111111111111111111111112Base58-encoded Solana address.
-
label·string | null· required · exampleRoot Signing WalletOptional wallet label.
-
purpose·string | null· required · examplerootOptional wallet purpose.
-
status·string· required · one ofactive,inactive· exampleactiveWallet status.
-
createdAt·string· required · formatdate-time· example2025-01-01T00:00:00.000ZISO 8601 timestamp.
-
balances·object[]Tracked token balances when requested and successfully observed. Omitted when the balance lookup is unavailable; an empty array is a successful zero-token result.
-
token·string· required · exampleUSDCTracked token symbol.
-
mint·string· required · min length 32 · max length 44 · example4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDUTracked token mint address.
-
amount·string· required · example1250000Raw token amount as a string.
-
uiAmount·string· required · example1.25Human-readable token balance.
-
decimals·integer· required · min 0 · example6Token decimals.
-
usdPrice·number· example1Resolved USD price per token when available.
-
usdValue·number· example125.5Resolved USD value of this balance when pricing is available.
-
One of:
-
Owned by a Managed config. · must include
custodyConfigId· must not includecustodyConnectionId -
Owned by a Custody Connection. · must include
custodyConnectionId· must not includecustodyConfigId
-
-
-
meta·object· requiredResponse metadata.
-
requestId·string· required · min length 1 · examplereq_exampleRequest identifier for tracing.
-
timestamp·string· required · formatdate-time· example2025-01-01T00:00:00.000ZISO 8601 timestamp.
-
-
-
400Bad Request-
error·object· requiredStandard error payload.
-
code·string· requiredMachine-readable error code.
-
message·string· requiredHuman-readable error message.
-
details·objectOptional error details for debugging.
*·any
-
-
meta·object-
requestId·string· min length 1 · examplereq_exampleRequest identifier for tracing.
-
-
-
401UnauthorizedSame fields as
400. -
403Forbidden. Requires thewallets.manageaction: an API key must hold it (a module'smanageorexecutealso covers itsread), and a signed-in member's organization role must include it. Without it the error is INSUFFICIENT_PERMISSIONS anderror.details.actionnames the action. Any other 403 names its own reason.Same fields as
400. -
404Not FoundSame fields as
400. -
409ConflictSame fields as
400. -
422Unprocessable EntitySame fields as
400. -
500Internal Server ErrorSame fields as
400.
Example request
curl -X PATCH 'https://api.solana.com/v1/wallets/privy_wallet_123' \
-H "Authorization: Bearer $SDP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"label": "Treasury signer"
}'Example responses
{
"data": {
"wallet": {
"id": "cw_example",
"custodyConfigId": "cfg_example",
"provider": "privy",
"isRuntimeExecutionAllowed": true,
"walletId": "privy_wallet_123",
"publicKey": "So11111111111111111111111111111111111111112",
"label": "Root Signing Wallet",
"purpose": "root",
"status": "active",
"createdAt": "2025-01-01T00:00:00.000Z"
}
},
"meta": {
"requestId": "req_example",
"timestamp": "2025-01-01T00:00:00.000Z"
}
}Error responses use the standard error shape.