Create Wallet
POST
/open-api/v1/wallet/createThis method allows you to create a new wallet. The created wallet will be a Parent Wallet.
API Key permission group : Enable Wallet Management
Request
Header Params
open-apikey
string
required
OpenAPI key string
signature
string
required
Signature of the request
Body Params application/json
requestId
integer <int64>
required
Unique Identifier
timestamp
integer <int64>
optional
walletName
string
required
Wallet name
walletType
enum<integer> <int32>
Wallet type
Allowed values:
1020
Example:
20
Example
{
"requestId": 0,
"timestamp": 0,
"walletName": "string",
"walletType": 10
}
Request samples
Responses
The operation succeeded(200)
Business error(200)
The client request is invalid(400)
Authentication failed (e.g., invalid token specified by the Authorization header)(401)
Authentication failed, but the operation is not allowed(403)
Requested resource does not exist(404)
Client request rate exceeded the limit(429)
System error(500)
The operation succeeded
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
optional
response data, maybe null
Any of
walletId
integer
required
walletName
string
required
walletType
enum<integer>
WalletType
Allowed values:
1011122021
walletIdStr
string
required
code
string
required
'000000' indicates success, while any others indicate failure.
message
string
required
When the code is '000000' (success), it represents the details of the response. Otherwise, it represents the details of the error.
Example
{
"data": {
"walletId": 374671162262925300,
"walletIdStr": "374671162262925312",
"walletName": "QW for test",
"walletType": 20
},
"code": "000000",
"message": "Success"
}
Last modified: 9 months ago