Register Through Wallet
Register through Wallet
POST https://metaforo.io/api/wallet/register
Notice: When web3_public_key already exists, instead of return error of "Wallet has been registered", this API will try to do wallet/login, in case network failures causing user did't get register success's response.
Headers
Name
Type
Description
api_key*
string
The API KEY that assigned to you.
Request Body
Name
Type
Description
web3_public_key*
String
Public key acquired through purse.
username*
String
Name of the user.
photo_url*
String
Uploaded photo's url
wallet_type*
int
1: Solana; 2: Solana hardware; 3: AR; 4: AnyWeb; 5: ETH
sign
String
wallet_type 1 & 3 needs check sign
signMsg
String
wallet_type 1 & 3 needs check sign
{
"status": true,
"code": 20000,
"description": "",
"server": "rest",
"data": {
"user": {
"photo_url": "http://test.com/photo",
"activate": 1,
"updated_at": "2022-09-07T09:58:24.000000Z",
"created_at": "2022-09-07T09:58:24.000000Z",
"id": 28394,
"web3_public_keys": [
{
"type": 4,
"address": "cfx:aargcrcwsaztcgcne0gb56zk1f08t9mdjpt9v08de:b5"
}
],
"username": "meta.test2.wallet.b5",
"is_nft": 0
},
"api_token": "10|2gVzJMf8nLf9Zcg6XYN8xKeCU19hxvbqqG7EKUw6"
}
}Last updated