Setup table credit

Parameters

In Testnet, we only support 3 currencies; SGD, THB and USD

Name

Description

Required?

Validation

assetCode

The name of your custom asset.

Yes

  • Unique for trusted partner.

  • Correct format (1-7 alphanumeric characters).

peggedCurrency

The currency you want to pegged this asset to.

Yes

  • Must be in [SGD, THB, USD].

peggedValue

The ratio of currency value vs 1 unit of custom asset.

Yes

  • Must be a positive number greater than 0 and has less than or equal to 7 decimal places.

$ gvel credit setup
Please input asset code: vTHB
Please input pegged value: 1
Please input pegged currency: THB
🔑 Please input passphrase: ****
💖 Setting up stable credit
// Where GB... is the default account
Stable credit vTHB set up for account GB... successfully.
🔗 txHash is ${txHash}

What's next?

Now that you have set up your stable credit, go to Mint stable credit to mint it into existence!

Last updated