Assets
An asset represents an item of value that can be transferred via the Interledger Protocol. Assets in Rafiki can be added through the Backend Admin API or the Rafiki Admin application.
Add an asset using the CreateAsset
GraphQL mutation
CreateAsset mutation
Example
To add US dollars, for example, as an asset type to your Rafiki instance, call the CreateAsset
mutation and pass the input
parameters for the asset code
, represented by its ISO 4217 currency code (USD), and scale
variables as follows:
Example JSON request
Variable | Description |
---|---|
code | The asset code, generally an ISO 4217 currency code where available. |
scale | Difference in order of magnitude between the standard unit and a fractional unit. |
Example JSON response