Create a virtual asset
Defines a new virtual asset for the project. Only available when virtual assets are enabled for the project. For FIXED rate source, an initial rate must be provided. For HTTP rate source, an endpoint URL is required.
Authorizations
API key as Bearer token
Headers
API version (YYYY-MM-DD)
2025-02-14 "2025-02-14"
Body
Unique symbol within the project (e.g., USDC, BTC, GOLD, POINTS). Uppercase alphanumeric and underscores only.
^[A-Z0-9_]{1,10}$Display name for the virtual asset
1 - 50Number of decimal places for amounts
0 <= x <= 18How the USD exchange rate is determined for this virtual asset.
FIXED, HTTP "FIXED"
Initial USD rate. Required when rateSource is FIXED. Ignored for HTTP.
URL of the rate endpoint. Required when rateSource is HTTP. Must be HTTPS and resolve to a public address (no private IPs). The endpoint must respond to GET requests with JSON: { "rate": <number> } where rate is the USD value of 1 unit of this virtual asset. Rates are fetched periodically by the platform.
Response
Virtual asset definition
Unique virtual asset identifier
Virtual asset symbol
Display name
Number of decimal places for amounts
-9007199254740991 <= x <= 9007199254740991Lifecycle status. Disabled assets are excluded from balance computation.
ACTIVE, DISABLED "ACTIVE"
How the USD exchange rate is determined for this virtual asset.
FIXED, HTTP "FIXED"
Rate endpoint URL. Present only for HTTP rate source.
Latest known USD rate per unit. Null if no rate snapshot exists yet.
x > 0ISO 8601 timestamp of the latest rate snapshot. Null when currentRate is null.
Total amount of this virtual asset allocated across all accounts in the project.
ISO 8601 creation timestamp
ISO 8601 last update timestamp