Virtual Currencies
Use off-chain Virtual Currency to enable support for fiat and custom off-chain tokens.
Deploy new Virtual Currency
To deploy new Virtual Currency you need to define unique name, inital supply, base currency and rate.
echo 'Issue new virtual currency named MY_USD'
curl --location --request POST 'https://api.orangepill.cloud/v1/currencies \
--header 'x-api-key: AXVubzpwQDU1dzByYM==' \
--header 'idempotency-key: 27373fabc392933deffdb' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "MY_USD",
"supply": "1000",
"base": "USD",
"rate": "1",
"currency": "USD"
"symbol":"$",
"symbol_url":"https://my-cdn.com/my-dollar-sign.svg",
"sub_unit": ["cent", "cents"],
}'In response you will receive new Virtual Currency with reference to newly created Account with supply issued.
Issue new supply
New supply can be issued on account holding Virtual Currency.
In response you will get Virttual Currency details with list of issue and destroy operations in object issuing.
Destroy a supply
You can destroy total supply of Virtual Currency on Account.
In response you will get Virtual Currency details with list of issue and destroy operations in object issuing.
Last updated
Was this helpful?