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
id:string
Wallet ID. Use it in GET /v1/wallets/{wallet_id} and as destination.id in a collection.
customer_id:string
ID of the customer who owns this wallet
address:string
Blockchain address. The API returns EVM addresses in checksum case.
network:string
Blockchain network, in lower case
Possible values: polygon, ethereum, avalanche, stellar, solana
name:string | null
The name you gave, or the label wallet_<customer_id>_<network> when you gave none.
wallet_type:string
Wallet type
Possible values: customer, master
date_created:string
When the wallet was created, to the second
error:null
Errors
Status
Meaning
200
The new wallet. It has no assets yet.
400
The 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>.