POST
/
auth
/
web3
/
login
curl --request POST \
  --url https://api.copin.io/auth/web3/login \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "<string>"
}'
{
  "verifyCode": "<string>"
}

Request Body

address
string
required

The Ethereum wallet address of the user attempting to login

Request Example

curl --request POST \
--url "https://api.copin.io/auth/web3/login" \
--header 'Content-Type: application/json' \
--data '{"address":"0x1535484c1eec1d203fe1a53ea11a621a884ae067"}'

Response

verifyCode
string

A verification code that will be used in subsequent authentication steps

Response Example

{
    "id": "654849d04857e1f744646cdd",
    "username": "0x1535484c1eec1d203fe1a53ea11a621a884ae067",
    "role": "guest",
    "isBlocked": false,
    "isActivated": true,
    "blockNote": "",
    "referralCode": "IEZ8LC",
    "isSkippedReferral": true,
    "copyTradeQuota": 3,
    "plan": 0,
    "createdAt": "2023-11-06T02:05:04.079Z",
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IjB4MTk2YWUxNkE5Mzg3YTNEYzVEZTgxMTQ2N0EyRTM3RDdGZUJlRDMwNCIsInRpbWUiOjE3NDQ2MjQwNjQyMTgsImFjY2VzcyI6IllrN1NjY0FrQ0MxNzQ0NjI0MDY0MjE4IiwiaWF0IjoxNzQ0NjI0MDY0LCJleHAiOjE3NDUyMjg4NjR9.09g22yhvApz64IPw3mGY0qsLLZqzeGUrKhcC27saLtr",
    "isAddedReferral": false
}