Centrapay digital assets are resources that represent the ability for a
Centrapay account to perform transactions where value is exchanged. Assets can
be spent to satisfy Payment Requests, withdrawn to a bank account via
Funds Transfers and sent to other Centrapay users via Asset Transfers.
Assets are categorized as either Money or Tokens. Depending on its
asset category, an asset will have different attributes available and different
rules governing how it can be obtained, shared or spent.
All assets have the following fields along with the additional fields that are
specific to its category. Assets which don’t have a category are considered experimental
and the model may change.
Money assets, being backed by real currency, are the most flexible asset types.
Money is accepted for most payment requests, can be sent in arbitrary amounts
and does not expire.
Money assets have the following attributes along with the base asset fields.
The period after which the balance will be reset. This field is only available on the quartz asset type. Possible values are daily, weekly, fortnightly, monthly or yearly.
Tokens are assets which can only be spent in full. Every token is associated with a collection, which defines the branding and general rules for the tokens, such as active duration.
Tokens have the following attributes along with the base asset fields.
Attributes
collectionId
string
The token collection that will govern the branding and redemption rules for the token.
A ledger is a single asset that maintains a balance of multiple tokens belonging to an account. All tokens in a ledger come from a specific collection. Multiple tokens can be spent or sent at once from the ledger.
Ledgers have the following attributes along with the base asset fields.