Assets
This content is for the v1-beta version. Switch to the latest version for up-to-date documentation.
An asset represents an item of value that can be transferred via the Interledger Protocol. Assets in Rafiki are added through the Backend Admin API or the Rafiki Admin application.
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 } } }}