Transactions End-points

This page details all the User Transaction queries

getUserTxHistoryBy100

Get 100 transactions for a specific user, including classification and DeFi PNL

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/all/extended/{userAddress}

Returns up to 100 transactions per call, for all chains a user is active on.

By default, returns the latest 100 transactions of the wallet. If startTime is set, will return the latest 100 Tx prior to startTime. Example: for startTime set to 31 December 2023 (1704059999) will return the latest 100 transactions before 31 December 2023.

Applicable for all supported chains, with advanced transaction classification information for all Advanced Transactions supported chains, more info here. For Solana blockchain transactions, please refer to the dedicated Solana Transactions endpoint below.

https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/all/extended/{userAddress}

Path Parameters

NameTypeDescription

userAddress*

string

User wallet address

Query Parameters

NameTypeDescription

startTime

long

Unix timestamp format. The returned history list consists in transactions occurring prior to this time

getUserTxHistoryBy20

Get 20 transactions for a specific user, including classification and DeFi PNL

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/all/{userAddress}

Returns up to 20 transactions per call, on all the chains the user is active on.

By default, returns the latest 20 transactions of the wallet. If startTime is set, will return the latest 20 Tx prior to startTime. Example: for startTime set to 31 December 2023 (1704059999) will return the latest 20 transactions before 31 December 2023.

Applicable for all supported protocols, with advanced transaction classification information for all Advanced Transactions supported chains, more info here. For Solana blockchain transactions, please refer to the dedicated Solana Transactions endpoint below.

https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/all/{userAddress}

Path Parameters

NameTypeDescription

userAddress*

string

User wallet address

Query Parameters

NameTypeDescription

startTime

long

Unix timestamp format. The returned history list consists in transactions occurring prior to this time

getUserTxHistoryByChainBy100

Get 100 transactions for a specific user and chain, including classification and DeFi PNL

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/chain/extended/{userAddress}

Returns up to 100 transactions per call, for the specified chain.

By default, returns the latest 100 transactions of the wallet on the specified chain. If startTime is set, will return the latest 100 Tx prior to startTime. Example: for startTime set to 31 December 2023 (1704059999) will return the latest 100 transactions before 31 December 2023, on the specified chain.

Applicable for all supported protocols, with advanced transaction classification information for all Advanced Transactions supported chains, more info here. For Solana blockchain transactions, please refer to the dedicated Solana Transactions endpoint below.

https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/chain/extended/{userAddress}

Path Parameters

NameTypeDescription

userAddress*

string

User wallet address

Query Parameters

NameTypeDescription

startTime

long

Unix timestamp format. The returned history list consists in transactions occurring prior to this time

chain*

sting

Chain id, check getSupportedChains endpoint response field 'id'

getUserTxHistoryByChainBy400

Get 400 transactions for a specific user and chain, excluding token USD valuations, including classification

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/chain/extended/{userAddress}

Returns up to 400 transactions per call, for the specified chain.

By default, returns the latest 400 transactions of the wallet on the specified chain. If startTime is set, will return the latest 400 Tx prior to startTime. Example: for startTime set to 31 December 2023 (1704059999) will return the latest 400 transactions before 31 December 2023, on the specified chain.

Applicable for all supported protocols, with advanced transaction classification information for all Advanced Transactions supported chains, more info here. For Solana blockchain transactions, please refer to the dedicated Solana Transactions endpoint below.

https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/chain/rawlabel/{userAddress}

Path Parameters

NameTypeDescription

userAddress*

string

User wallet address

Query Parameters

NameTypeDescription

startTime

long

Unix timestamp format. The returned history list consists in transactions occurring prior to this time

chain*

sting

Chain id, check getSupportedChains endpoint response field 'id'

getUserSolanaTxHistoryBy100

Get 100 Solana transactions for a specific user, including classification*

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/all/extended/{userAddress}

Returns the latest 100 transactions of the wallet. When the beforeHash is set, will return the latest 100 Tx prior to that transaction hash. Applicable for Solana blockchain transactions only.

*The transaction classification information provides limited coverage: Wallet to Wallet Transfers (Send, Receive), NFT Airdrops, Liquidity Pool Exchange, Staking Deposits and Withdrawals. Extended coverage coming soon.

https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/all/extended/{userAddress}

Path Parameters

NameTypeDescription

userAddress*

string

User wallet address

Query Parameters

NameTypeDescription

beforeHash

long

Solana transaction hash. The returned history list consists in transactions occurring prior to this given transaction hash

getUserSolanaTxHistoryBy20

Get 20 Solana transactions for a specific user, including classification*

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/all/{userAddress}

Returns the latest 20 transactions of the wallet. When the beforeHash is set, will return the latest 20 Tx prior to that transaction hash. Applicable for Solana blockchain transactions only.

*The transaction classification information provides limited coverage: Wallet to Wallet Transfers (Send, Receive), NFT Airdrops, Liquidity Pool Exchange, Staking Deposits and Withdrawals. Extended coverage coming soon.

https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/history/all/{userAddress}

Path Parameters

NameTypeDescription

userAddress*

string

User wallet address

Query Parameters

NameTypeDescription

beforeHash

long

Solana transaction hash. The returned history list consists in transactions occurring prior to this given transaction hash

getUserTxByPeriodBy100

Get 100 transactions for a specific user, in specified timeframe, including classification and DeFi PNL

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/period/all/extended/{userAddress}

Returns up to 100 transactions per call, for all chains a user is active on, for the specified timeframe: older than startTime and more recent than endTime.

Example for retrieving transactions between 01 Jan 2024 and 31 Jan 2024, startTime is 31 Jan 2024 and endTime 01 Jan 2024.

If the response contains 100 transactions, and if the input timeframe endTime is older than the date of the oldest transaction returned, it is likely that more than 100 transactions occurred during the input timeframe. In which case, it is recommended to renew the call with an adjusted timeframe covering the date of the oldest transaction retrieved and the initial endTime.

Applicable for all DeFi NAV supported protocols, with advanced transaction classification information for all Advanced Transactions supported chains, more info here. Solana blockchain transactions cannot be retrieved by timeframe.

https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/period/all/extended/{userAddress}

Path Parameters

NameTypeDescription

userAddress*

string

User wallet address

Query Parameters

NameTypeDescription

startTime*

long

Unix timestamp format. The returned history list consists in transactions occurring prior to this time

endTime*

long

Unix timestamp format. The returned history list consists in transactions occurring after this time

getUserTxByPeriodByChainBy100

Get 100 transactions for a specific user and chain, including classification and DeFi PNL

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/period/chain/extended/{userAddress}

Returns up to 100 transactions per call, for the specified chain and for the specified timeframe: older than startTime and more recent than endTime.

Example for retrieving transactions between 01 Jan 2024 and 31 Jan 2024, startTime is 31 Jan 2024 and endTime 01 Jan 2024.

If the response contains 100 transactions, and if the input timeframe endTime is older than the date of the oldest transaction returned, it is likely that more than 100 transactions occurred during the input timeframe. In which case, it is recommended to renew the call with an adjusted timeframe covering the date of the oldest transaction retrieved and the initial endTime.

Applicable for all DeFi NAV supported protocols, with advanced transaction classification information for all Advanced Transactions supported chains, more info here. Solana blockchain transactions cannot be retrieved by timeframe.

https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/period/chain/extended/{userAddress}

Path Parameters

NameTypeDescription

userAddress*

string

User wallet address

Query Parameters

NameTypeDescription

startTime*

long

Unix timestamp format. The returned history list consists in transactions occurring prior to this time

chain*

sting

Chain id, check getSupportedChains endpoint response field 'id'

endTime*

long

Unix timestamp format. The returned history list consists in transactions occurring after this time

getUserTxByHash

Get full transaction details for a specific transaction hash

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/byHash/{chain}/{hash}/{userAddress}

Returns one transaction for the given user (wallet address), chain and transaction hash, including classification and DeFi PNL information.

Applicable for all Advanced Transactions supported chains, more info here.

https://api-v1.mymerlin.io/api/merlin/public/v2/userTx/byHash/{chain}/{hash}/{userAddress}

Path Parameters

NameTypeDescription

userAddress*

string

User wallet address

chain*

string

Chain id, check getSupportedChains endpoint response field 'id'

hash*

string

Transaction hash

getUserTxTransfersByHash

Get only transaction transfers (moved balances) for a specific transaction hash

GET https://api-v1.mymerlin.io/api/merlin/public/v2/userTxTransfers/byHash/{chain}/{hash}/{userAddress}

Returns one transaction for the given user (wallet address), chain and transaction hash, containing only the token transfer information (moved balances).

https://api-v1.mymerlin.io/api/merlin/public/v2/userTxTransfers/byHash/{chain}/{hash}/{userAddress}

Path Parameters

NameTypeDescription

userAddress*

string

User wallet address

chain*

string

Chain id, check getSupportedChains endpoint response field 'id'

hash*

string

Transaction hash

getUserTxForDeFiPosition

Get all the transactions for a specific user and DeFi position in a protocol (including classification and PNL)

GET https://api-v1.mymerlin.io/api/merlin/public/userTx/position/?position={position}

Returns a position's related transactions, up to 100 related tx. Applies for the DeFi P&L supported protocol positions.

https://api-v1.mymerlin.io/api/merlin/public/userTx/position/?position={position}

Query Parameters

NameTypeDescription

position*

string

PositionId, retrieved value from DeFi Positions response field 'yieldAndPnl' > 'id'

getUserTxOverview

Get a list of chains the specific user is active on, and the number of transactions initiated by the user on those chains (the nb of transactions initiated by the user is not the exhaustive nb of transactions related to that user; does not include internal transfers or other transactions not initiated by the user)

GET https://api-v1.mymerlin.io/api/merlin/public/userTx/overview/{userAddress}

Returns a wallet activity overview, consisting (for now) in the number of transactions the specified user has initiated on the Advanced Transactions supported chains (excluding Solana); this is not the total number of transactions the user has been involved in, but only those initiated by the user.

https://api-v1.mymerlin.io/api/merlin/public/userTx/overview/{userAddress}

Query Parameters

NameTypeDescription

userAddress*

string

User wallet address

Last updated