Protocol End-points

This section provides all the needed information about how to request the data to the Protocol's API

getSupportedChains

Get the list of chains supported by Merlin

GET https://api-v1.mymerlin.io/api/merlin/public/chains

Blockchain networks for which Merlin provides wallet balances, DeFi active positions NAV, transactions. For transactions classification support check getAdvTransactionSupportedChains endpoint.

[
  {
        "id": "dfk",
        "name": "DFK",
        "logoUrl": "https://valk-merlin.s3.amazonaws.com/chain-icons/dfk.png",
        "wrappedTokenId": "0xccb93dabd71c8dad03fc4ce5559dc3d89f67a260"
    }, ...
]
curl -X GET --header 'Accept: application/json' 
'https://api-v1.mymerlin.io/api/merlin/public/chains'

getSupportedProtocols

Get the list of DeFi protocols supported by Merlin

GET https://api-v1.mymerlin.io/api/merlin/public/protocols

DeFi protocols for which Merlin provides NAV tracking - DeFi active positions NAV. hasSupportedPnlAndYield parameter indicates additional P&L analytics support for both active (open) and past (closed) positions.

Query Parameters

NameTypeDescription

chain

String

Chain id, check getAllSupportedChains endpoint response field 'id'

[
    {
        "chain": "eth",
        "name": "1sd",
        "commonName": "1sd",
        "logo": "https://valk-merlin.s3.amazonaws.com/protocol-icons/1sd.png",
        "site": "https://1sd.finance",
        "hasSupportedPnlAndYield": false
    }, ...
]
curl -X GET --header 'Accept: application/json' 
'https://api-v1.mymerlin.io/api/merlin/public/protocols?chain={chain}' \
--header 'Authorization: {Api Secret Key}'

getAdvTransactionSupportedChains

Get the list of chains supported by Merlin for advanced user transaction data

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/tx/supportedChains

Blockchain networks for which Merlin provides advanced transaction data - classification information. The response also includes the native token information for the given chain.

[
   {
        "name": "bsc",
        "displayName": "BSC",
        "currency": "BNB",
        "explorerUrl":"https://bscscan.com"
    }, ...
]

Last updated