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
mutation CreateAsset($input: CreateAssetInput!) { createAsset(input: $input) { code success message asset { id code scale } }}
{ "input": { "code": "USD", "scale": 2 }}
For more information about this mutation’s input object, see CreateAssetInput
.
{ "data": { "createAsset": { "code": "200", "success": true, "message": "Created Asset", "asset": { "id": "b3dffeda-1e0e-47d4-82a3-69b1a622eeb9", "code": "USD", "scale": 2 } } }}