Skip to main content

Crate custom tokens

POST 

/v1/custom-tokens

Crate custom tokens

This endpoint allows clients to generate a new custom token based on provided details such as the blockchain address and chain ID. It extracts relevant token attributes, and inserts a new token record into the database. If successful, it returns the newly created token object; otherwise, it handles errors gracefully, returning appropriate HTTP status codes and error messages.

Request

Body

required
    address stringrequired
    chain_id int32required
    user_id uuidnullable

Responses

Token created

Schema
    address stringrequired
    asset_type stringrequired
    chain_id int32required
    coingecko_id stringnullable
    decimals int32nullable
    id uuidrequired
    item_id stringnullable
    name stringnullable
    owner_address stringnullable
    symbol stringnullable
    token_uri stringnullable
    updated_at date-timerequired
Loading...