Assets
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.
Permissions
- Operators can create assets for any tenant
- Operators can view any asset
- Operators can edit and delete assets that belong to any tenant
- Tenants can only view their own assets
- Tenants can only edit and delete their own assets
- Tenants cannot create assets
mutation CreateAsset($input: CreateAssetInput!) { createAsset(input: $input) { code success message asset { id code scale tenantId } }}
{ "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, "tenantId": "a1b2c3d4-e5f6-7890-1234-567890abcdef" } } }}