Skip to main content

AssetInfo

Returns information about every supported token (or about the queried assetId token).

Request Parameters

NameTypeDescription
assetIdstringOPTIONAL. The ID of the DeCash asset of which informations will be returned. If not set, informations about all DeCash tokens will be returned.

Responses

Regular response

NameTypeDescription
infoArray<{assetId:string, asaId:number, baseFee:number}>The array of asset properties. The field assetId contains the DeCash Asset ID (e.g. USDD); the field asaId contains the ID of the actual algorand asset (e.g. 51987792); the field baseFee contains the amount that must be paid (of this specific asset) by the sender for each sender-receiver pair.

Validation errors

Returned when the parameters are invalid.

NameContent
Status code400
errorIdINVALID_PARAMS
messageValidation errors in AssetInfo request.
errorsArray of strings containing additional informations.

Example Usage

const response = await fetch('https://delegator-dev01b.arringo.co/api-test/AssetInfo', {
method: 'POST',
body: JSON.stringify({
'assetId': 'USDD',
})
});
const data = await response.json();

Example Success Response

{
"info": [{"assetId": "USDD", "asaId": 51987792, "baseFee": 0.01}]
}