Skip to Content
Scalar
Data APIs

Set or update own username

Claims or renames the username for the authenticated address. Renames are limited to once per day.

PUT
/account/{user}/username

Claims or renames the username for the authenticated address. Renames are limited to once per day.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

user*string

User address in hex format (0x prefix optional)

Request Body

  1. body
username*string

Desired username

Length3 <= length <= 20

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 PUT 'https://data.scalar.market/account/string/username' \
  -H 'Content-Type: application/json' \
  -d '{
  "username": "string"
}'
Example Response
{
  "username": "string",
  "address": "string",
  "chain_id": 0,
  "created_at": 0,
  "updated_at": 0,
  "last_rename_at": 0
}