Skip to main content

Create Currency Token

Creates a new currency token under the specified node.

Request

POST /v2/admin/currency-tokens/nodes/{nodeID}

Parameters

NameTypeInDescription
nodeIDstringpathRequired. The ID of the node under which the currency token will be created

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication

Body (multipart/form-data)

FieldTypeRequiredDescription
namestringYesCurrency token display name
symbolstringYesCurrency token symbol (e.g., USDT, CSTM)
descriptionstringNoDescription of the currency token
logofileNoLogo file (e.g., SVG/PNG)
fiat_currencystringNoISO 4217 fiat currency code (e.g., USD, EUR, TRY). Must be a valid ISO 4217 currency code

Example

curl --location '{{baseUrl}}/v2/admin/currency-tokens/nodes/665ae536a6392b75cfd40352' \
--header 'Authorization: Bearer <token>' \
--form 'name="Custom Stable Coin"' \
--form 'symbol="CSTM"' \
--form 'description="Example description"' \
--form 'logo=@"/Users/burkaydurdu/Downloads/wallet.svg"' \
--form 'fiat_currency="USD"'

Response

{
"id": "690d004e8f95a5c7b2614658",
"node_id": "665ae536a6392b75cfd40352",
"type": 1,
"status": 1,
"name": "Custom Stable Coin",
"symbol": "CSTM",
"total_supply": 0,
"description": "",
"decimals": 6,
"meta": {
"logo": null
},
"contract": null,
"is_active": false,
"created_at": "2025-11-06T23:08:46.553086+03:00",
"updated_at": "2025-11-06T23:08:46.553086+03:00"
}

Response Fields

FieldTypeDescription
idstringUnique ID of the currency token
node_idstringNode ID the token belongs to
typenumberToken type identifier
statusnumberToken status identifier
namestringCurrency token name
symbolstringCurrency token symbol
total_supplynumberTotal supply (initially 0)
descriptionstringDescription text
decimalsnumberDecimal precision (e.g., 6)
meta.logostring or nullLogo URL or null if not set
contractobject or nullContract details if deployed
is_activebooleanWhether the token is active
created_atstringCreation timestamp
updated_atstringLast update timestamp

Status Codes

Status CodeDescription
201Created - Currency token created successfully
400Bad Request - Invalid input
401Unauthorized - Invalid or missing authentication token
404Not Found - Node does not exist
415Unsupported Media Type - Invalid file upload
500Internal Server Error