Fetch Financial Asset

Create a new contact in your organization.

Get Financial Asset Details

In order to call mutations such as money transfers and swaps, you will need to fetch the financial asset ID of a specific asset. The way to get a specific asset/multiple asset IDs, use the following query:

In the query variables (body), you insert the code of the asset you wish to fetch. See the example body below for reference.

query FinancialAssets($where: FinancialAssetWhereInput) {
  financialAssets(where: $where) {
    code
    id
  }
}

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body (FinancialAssetWhereInput object)

Name
Type
Description

code

String

Asset Code (i.e. - USDT / ETH / BTC / MATIC)

Example body:

{
  "where": {
    "code": {
      "equals": "USDT"
    }
  }
}

Response

Return values:

Name
Type
Description

code

String

Asset Code

id

String

Asset ID

{
  "data": {
    "financialAssets": [
      {
        "code": "USDT",
        "id": "clefn78gv011olc6rcwtt0wel"
      }
    ]
  }
}

Try it out!