Create Wallet

Create a wallet for your brand-new customers.

Overview

Workflow

Let's start πŸš€

URL

To instantiate a new wallet, use https://custody.arianee.com/{{client}}/{{network}}/wallet/create.

POST - https://custody.arianee.com/{{client}}/{{network}}/wallet/create

Body

FieldTypeRequiredDescription
providerStringβœ…Your custodial provider.
Today, supported providers are:
- arianee-custodial
- dfns
{
    "provider": "dfns"
}

Return Payload

Status CodeSuccessDescription
200trueWallet is created, the address is returned.
For dfns, walletId is also returned.
{
    "address": "0x52d8ad9b283b45e52fa6e0f3967b927e59508a9d",
    "walletId": "wa-7n54f-hicck-83t8l7etk1f1mr42"
}
{
    "address": "0xC8Dac970c21230b9e6633AD38FB4297800B93E77"
}

Errors

Status CodeSuccessDescription
400falseProvider is not supported.
409falseThe user already has a wallet.
{
    "name": "API Error",
    "code": "CUSTODY_GATEWAY.WRONG_PROVIDER",
    "description": "Wrong provider value : 'arianee-custodial' for this client ",
    "httpCode": 400
}
{
    "name": "API Error",
    "code": "CUSTODY_GATEWAY.USER_ALREADY_HAVE_A_WALLET",
    "description": "This user already have a wallet",
    "httpCode": 409
}