- Docs
- Api%2Freference%2Fwallets%2FRegisterWallet
Register a new wallet
Register a new wallet in the system. This endpoint allows users to create a new wallet account with basic information such as email, phone number, and password. Upon successful registration, the system returns authentication tokens for immediate access to the platform.
Request Body
application/json
Register payload
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://api-testnet.dual.network/wallets" \ -H "Content-Type: application/json" \ -d '{}'{
"wallet": {
"id": "string",
"nickname": "string",
"email": "string",
"phone_number": "string",
"avatar": {
"id": "string",
"name": "string",
"type": "string",
"url": "string",
"hash": "string",
"is_public": true,
"when_created": "2019-08-24T14:15:22Z"
},
"language": "en",
"fqdn": "string",
"activated": true,
"disabled": true,
"account": {
"address": "string",
"public_key": "string",
"type": "ED25519"
},
"onboarding": true,
"when_created": "2019-08-24T14:15:22Z",
"when_modified": "2019-08-24T14:15:22Z"
},
"access_token": "string",
"refresh_token": "string"
}{
"code": 0,
"message": "string",
"details": {}
}{
"code": 0,
"message": "string",
"details": {}
}