Wallet Create
Last updated
Last updated
This API allows clients to create or retrieve a wallet for a user. The client supplies an email address or phone number, and receive a wallet address (and anonymized wallet ID) in response. If a wallet has already been created for the user, the wallet address and anonymized wallet ID will be returned. If a wallet already exists for the user, the wallet is looked up and the address and ID are returned.
Description | Data |
---|---|
Validation:
Ensure you have an active API key.
Either email
or phone
should be present in the request, otherwise, a validation error will be returned.
If the wallet already exists for the provided email address or phone number, the previously created wallet ID will be returned.
If the ignoreAddress
parameter is set to true
, the wallet address won't be returned.
If the ignoreAddress
parameter is omitted or set to false
, both the wallet ID and the wallet address will be returned.
API Name
HTTP Method
POST
URL
/v1/wallet/create
Content-Type
application/json
x-api-key
API_KEY
ignoreAddress
boolean
when set to true
, prevents the return of the wallet address
string
The email of the user for claim. Note: Either email
or phone
should be present in the request.
phone
string
The phone number of the user. Note: Either email
or phone
should be present in the request.