Data APIs
Set or update own username
Claims or renames the username for the authenticated address. Renames are limited to once per day.
PUT
Claims or renames the username for the authenticated address. Renames are limited to once per day.
bearerAuthheader
AuthorizationBearer <JWT>user*stringUser address in hex format (0x prefix optional)
- body
username*stringDesired username
Length
3 <= length <= 20Username profile
application/json- response
Username profile
username*stringCanonical lowercase username
address*stringOwner address, checksummed
chain_id*numberChain the username was set on
created_at*numberUnix timestamp (seconds)
updated_at*numberUnix timestamp (seconds)
last_rename_at*|nullcurl -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
}