cURL
curl --request POST \ --url https://api.g2cplatform.com/v2/auth/wallet/login \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "username": "<string>", "password": "<string>" } '
{ "token": "<string>", "expiresAt": "2023-11-07T05:31:56Z", "wallet": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "username": "<string>", "status": "active", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "email": "[email protected]", "blockchainAddress": "<string>", "metadata": {} } }
API key for authenticating requests. Include in X-API-Key header.
Username in format: @
Wallet password
Authentication successful
JWT access token
Token expiration timestamp
Show child attributes
Unique identifier for the wallet
Unique username for the wallet
Current status of the wallet
active
inactive
suspended
When the wallet was created
When the wallet was last updated
Email address associated with the wallet
Blockchain address for the wallet
Additional metadata as key-value pairs