decentralised.art Chain Auth API (0.4.0)

Download OpenAPI specification:

License: MIT

Chain authentication endpoints.

auth

Operations related to authentication.

Get nonce

Get a one-time nonce for an address. Sign Login nonce: <nonce> and submit it to /auth.

path Parameters
address
required
string (Address) ^(0x)?[a-fA-F0-9]{40}$

Address to get nonce for

Responses

Response samples

Content type
application/json
{
  • "nonce": "string"
}

CORS preflight

CORS preflight

Responses

Authenticate

Authenticate using an address, the signed login message, and its signature.

Request Body schema: application/json
required
address
required
string (Address) ^(0x)?[a-fA-F0-9]{40}$

Ethereum-style address, with or without a 0x prefix.

message
required
string

Login message signed by the account owner. Must be Login nonce: <nonce>.

signature
required
string

Wallet signature of the login message.

Responses

Request samples

Content type
application/json
{
  • "address": "string",
  • "message": "string",
  • "signature": "string"
}

Response samples

Content type
application/json
{
  • "access_token": "string"
}