Skip to Content
Scalar
Data APIs

Get username by address

Returns the username tied to an address. With a valid session token for that address, a username is generated and claimed on first lookup.

GET
/account/{user}/username

Returns the username tied to an address. With a valid session token for that address, a username is generated and claimed on first lookup.

Path Parameters

user*string

User address in hex format (0x prefix optional)

Response Body

Username profile

application/json
  1. response

Username profile

username*string

Canonical lowercase username

address*string

Owner address, checksummed

chain_id*number

Chain the username was set on

created_at*number

Unix timestamp (seconds)

updated_at*number

Unix timestamp (seconds)

last_rename_at*|null
Example Request
curl -X GET 'https://data.scalar.market/account/string/username'
Example Response
{
  "username": "string",
  "address": "string",
  "chain_id": 0,
  "created_at": 0,
  "updated_at": 0,
  "last_rename_at": 0
}