Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Wallets Create a wallet

Create a wallet

Creates a blockchain wallet for a customer on one network. The call is synchronous, so the response includes the address.

POSThttps://api.gravv.xyz/v1/walletsTry it
Api-Key

Creates a blockchain wallet for a customer on one network. The call is synchronous, so the response includes the address.

Every call creates a new wallet with a new address, even for the same customer and network. Reuse the Idempotency-Key to retry. A Stellar wallet finishes its trustline setup in the background, so it can take a short time before it can hold USDC.

Headers

NameDescription
Idempotency-Key:stringRequired
Required for POST requests. Reuse it only to retry the same request. Each new key creates a new wallet.

Body parameters

NameDescription
customer_id:stringRequired
ID of the customer to create the wallet for. Gravv does not check that the customer exists, so check the ID before you send it.
name:string | null
Optional name for the wallet
network:stringRequired

Blockchain network, in lower case

Possible values: polygon, ethereum, avalanche, stellar, solana

wallet_type:string

Wallet type. A tenant can have one master wallet on each network.

Possible values: customer, master

Default"customer"

Response

Returns 200 OK. The new wallet. It has no assets yet.

NameDescription
data:object
Show 7 child attributesobject
error:null

Errors

StatusMeaning
200The new wallet. It has no assets yet.
400The request failed. Errors include missing or invalid customer_id, missing or invalid network, invalid wallet_type, and tenant already has a master wallet on <network>.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/wallets' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: wallet_create_001' \
--header 'Content-Type: application/json' \
--data '{
"customer_id": "9e3cccad-e9ae-47a0-81ee-063af0159310",
"name": "my wallet",
"network": "stellar"
}'
Responseapplication/json
200400OK
{
"data": {
"id": "2d52eb6d-4fac-44db-a225-d0e6aa13b0e3",
"address": "GDZQAF4A2E5VZMMQVW7XG4FKWZ5KDSUEZF5VQBDQVM53TMU2YLE54NTX",
"network": "stellar",
"name": "my wallet",
"date_created": "2026-10-12T09:14:03Z",
"customer_id": "9e3cccad-e9ae-47a0-81ee-063af0159310",
"wallet_type": "customer"
},
"error": null
}