Transaction

Get Transactions for a Single Wallet

Returns all transactions involving a given address.

https://api.treehouse.finance/v3/transactions/txn_by_wallet
    ?wallet=0x5853ed4f26a3fcea565b3fbc698bb19cdf6deb85
    &chains=eth
    &start_time=1668130850
    &end_time=1673314850
    &page=1
    &pageSize=20
    &access_key=yourApiKey

Transactions by Wallet

GET https://api.treehouse.finance/v3/transactions/txn_by_wallet

Query Parameters

{
    "status": "OK",
    "data": [
        {
            "transaction_history": [
                {
                    "wallet_id": string,
                    "txn_hash": string,
                    "block": integer,
                    "from": string,
                    "to": string,
                    "from_type": string,
                    "to_type": string,
                    "txn_fee": float,
                    "gas_fee": float,
                    "action_type": string,
                    "method_hex": string,
                    "protocol_id": string,
                    "chain_id": string,
                    "date": datetime,
                    "details": [
                        {
                            "token_cid": string,
                            "type": string,
                            "qty": float,
                            "symbol": string
                        }
                    ],
                    status: integer
                }
            ],
            "start_block": integer,
            "end_block": integer,
            "completion_ratio": float
        }
    ],
    "message": "Get transaction history (ID: requestId) succeed."
}

Get Event Logs for a Single Transaction Hash

Returns all event logs from a given transaction hash.

https://api.treehouse.finance/v3/transactions/logs_by_txn_hash
    ?txn_hash=0x09962215cfea375f4fd3767703327f1796ed01f876b794b9bca272cbb0d3a628
    &chain_id=eth
    &page=1
    &pageSize=20
    &access_key=yourApiKey

Logs by Transaction Hash

GET https://api.treehouse.finance/v3/transactions/logs_by_txn_hash

Query Parameters

{
    "status": string,
    "data": [
        {
            "txn_hash": string,
            "block": integer,
            "from": string,
            "from_type": string,
            "txn_fee": float,
            "gas_fee": float,
            "chain_id": string,
            "date": datetime,
            "logs": [
                {
                    "topics": [list of topics],
                    "data": string,
                    "log_index": integer
                }
            ]
        }
    ],
    "message": "Get logs (ID: requestId) succeed.",
    "total": integer
}

Last updated