Skip to main content
POST /wallet/delete Deletes a wallet owned by your account.

Request

{
  "api_key": "sk_live_...",
  "wallet_id": "w_c8b07c7d-9c7d-4a33-9200-0bdfa82dc497"
}
FieldTypeRequiredNotes
api_keystringCustomer API key.
wallet_idstringWallet ID (w_<uuid>) or on-chain address.

Response

{
  "result": "ok",
  "wallet_name": "first_wallet"
}
  • Returns the wallet_name of the deleted wallet.
  • Plan quotas are recalculated so another wallet may become included in plan.

Errors

StatusPayloadWhen it happens
400{ "error": "Missing required fields" }Missing parameters.
403{ "error": "API key is not valid" }API key fails validation.
404{ "error": "Wallet not found" }Wallet does not exist or isn’t owned by your account.
500{ "error": "<message>" }Unexpected service error.

Examples

from py_1151 import Client

client = Client(api_key="sk_live_...")

client.delete_wallet("w_c8b07c7d-9c7d-4a33-9200-0bdfa82dc497")

print("Wallet deleted")
Each approach deletes the wallet by ID; substitute any supported identifier (address or name) when it is more convenient.