Skip to content

Deploy a Stablecoin

Deploying a stablecoin is the first step to tokenizing fiat currency on FSCO. This guide walks you through deploying the necessary contracts and registering the stablecoin with your organization.

Before you begin, ensure:

  • You have an FSCO wallet to assign as the stablecoin’s admin (adminWalletId)
  • You’ve chosen a name, symbol, and number of decimals for your token
  • You have ensured regulatory compliance in your jurisdiction to create this token
POST /v2/stablecoin/deploy
{
"name": "My Stablecoin",
"symbol": "USDX",
"decimals": 18,
"adminWalletId": "wallet-1234",
"backingCurrency": "United States Dollar",
"backingCurrencySymbol": "$"
}
  • name: Human-readable token name (e.g. “My Stablecoin”)
  • symbol: Ticker symbol (e.g. “USDX”)
  • decimals: Number of decimal places (18 for standard ERC-20)
  • adminWalletId: FSCO wallet with DEFAULT_ADMIN_ROLE
  • backingCurrency: Name of the fiat this stablecoin represents (e.g. “Philippine Peso”)
  • backingCurrencySymbol: Display symbol for the fiat (e.g. ”₱“)
deploy-stablecoin.sh
curl -X POST https://api.fsco.io/v2/stablecoin/deploy \
-H "Authorization: Bearer $FSCO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My Stablecoin",
"symbol": "USDX",
"decimals": 18,
"adminWalletId": "{{walletId}}",
"backingCurrency": "United States Dollar",
"backingCurrencySymbol": "$"
}'
response.json
{
"stablecoinId": "{{stablecoinId}}"
}
The response returns a stablecoinId, which you will use for all future actions such as minting, burning, role assignment, and querying supply.