create_customer
Create or sync one customer vault synchronously (treasury + wallets:write). Idempotent on externalCustomerId + namespace + chain. Returns wallet address immediately; Turnkey wallet creation may take a few seconds on first call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"clientRequestId": "<clientRequestId>",
"externalCustomerId": "<externalCustomerId>",
"wallet": "<wallet>"
},
"name": "create_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Wallet to create or reuse for this customer | |
| namespace | No | Optional mapping namespace (default: default) | |
| credential | No | Optional vault-scoped credential to issue for this wallet | |
| clientRequestId | Yes | Caller idempotency id (unique per provisioning attempt) | |
| externalCustomerId | Yes | Your platform customer id (stable across retries) |