Skip to main content

Get asset by ID

GET 

https://api.sandbox.magfi.net/api/assets/:id

Retrieve a specific asset by its ID

Request

Path Parameters

    id uuidrequired

    Asset ID

Responses

Asset retrieved successfully

Schema
    iduuid
    namestring

    Name of the asset

    Possible values: <= 255 characters

    Example: Bitcoin
    labelstring

    Short label/symbol for the asset

    Possible values: <= 255 characters

    Example: BTC
    unitNamestring

    Name of the unit

    Possible values: <= 255 characters

    Example: bitcoin
    assetTypestring

    Type of the asset

    Possible values: <= 255 characters

    Default value: bitcoin
    Example: bitcoin
    maxDecimalPrecisioninteger

    Maximum number of decimal places

    Example: 8
    blockchainIdstring

    ID of the blockchain

    Possible values: <= 255 characters

    Example: btc-mainnet
    fireblocksAssetIdstring

    Fireblocks asset identifier

    Possible values: <= 255 characters

    Example: BTC
    globallyAvailableboolean

    Whether the asset is globally available

    Default value: false
    innotrustIdstring

    Innotrust identifier

    Possible values: <= 255 characters

    Example: INNO_BTC
    internalboolean

    Whether the asset is internal

    Default value: false
    requiresManualDepositboolean

    Whether manual deposit is required

    Default value: false
    requiresTagboolean

    Whether the asset requires a tag

    Default value: false
    singleUnitboolean

    Whether the asset is a single unit

    Default value: false
    supportFireblocksIncomingAddressboolean

    Whether Fireblocks incoming addresses are supported

    Default value: false
    transferableboolean

    Whether the asset can be transferred

    Default value: true
    createdAtdate-time
    updatedAtdate-time
const myHeaders = new Headers();
myHeaders.append("Accept", "application/json");

const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};

fetch("https://api.sandbox.magfi.net/api/assets/:id", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Request Collapse all
Base URL
https://api.sandbox.magfi.net/api
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!