> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get all Historical Transactions of a Crypto Wallet

> Learn how to retrieve a complete history of transactions for any EVM-compatible wallet using the Mobula API. This guide covers methods for obtaining detailed transaction data, including filtering by date, type, and blockchain.

The Mobula API allows for an in-depth exploration of all historical transactions associated with EVM-compatible wallets. This comprehensive guide will show you how to effectively use the API to access this data.

### What you'll need

1. An EVM-compatible wallet address.
2. An idea of what you want to build
3. An API key from the [Dashboard](https://admin.mobula.io) (only for production use, you can use the API without an API key in development mode)

### Walkthrough

<Steps>
  <Step title="Set Up Your Query Parameters">
    Identify the wallet address for your query. Optionally, specify filters like transaction types, blockchains, and date ranges.
  </Step>

  <Step title="Perform the API Request">
    Execute the API call using cURL, Axios, or the Mobula SDK (Beta):

    **Using cURL**:

    ```bash theme={null}
    curl --location --request GET 'https://api.mobula.io/api/1/wallet/transactions?wallet=0x77A89C51f106D6cD547542a3A83FE73cB4459135'
    ```

    **Using Axios**:

    ```javascript theme={null}
        fetch('https://api.mobula.io/api/1/wallet/transactions?wallet=0x77A89C51f106D6cD547542a3A83FE73cB4459135').then(response => response.json())
    .then(response => console.log(response.data))
    .catch(error => console.log(error));
    ```
  </Step>

  <Step title="Analyze the Transaction Data">
    The API response will include detailed transaction records, such as timestamps, transaction types, amounts, and blockchain specifics.

    ```json theme={null}
    {
      "data": {
        "transactions": [
          {
            "timestamp": 1650788305000,
            "asset": {
              "name": "StaySAFU",
              "symbol": "SAFU",
              "id": 3,
              "contract": "0x890cc7d14948478c98a6cd7f511e1f7f7f99f397",
              "logo": "https://metacore.mobula.io/4ed4daf3f124fae650cfab146ae7348cdb62920bc25bf6408698654835192a1b.png"
            },
            "type": "buy",
            "method_id": null,
            "hash": "0x0768d341245f70010d2a326062b6d46f76c794fc46ef0f6a75802cf66493cc54",
            "blockchain": "BNB Smart Chain (BEP20)",
            "amount": 4.95,
            "amount_usd": 41.255,
            "to": "0x77a89c51f106d6cd547542a3a83fe73cb4459135",
            "from": "0xbb663a119193ca68512c351b0fdfdeb9c22dc416"
          },
          {
            "timestamp": 1651854030000,
            "asset": {
              "name": "Polygon",
              "symbol": "MATIC",
              "id": 100007238,
              "contract": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
              "logo": "https://metacore.mobula.io/22884f2d889a75fd9715538bf8c4ffedfd91766e8b3a886128dd9495521deca7.png"
            },
            "type": "buy",
            "method_id": "0x",
            "hash": "0xa09eb4063df609101f94cdaff14ee936e10304501f88ba7bee58b290f86db3b9",
            "blockchain": "Polygon",
            "amount": 11,
            "amount_usd": 11.485,
            "to": "0x77a89c51f106d6cd547542a3a83fe73cb4459135",
            "from": "0x0490d25a95befdde088c8a3d741b5afba29cb8d9"
          },
          {
            "timestamp": 1652261163000,
            "asset": {
              "name": "Mobula",
              "symbol": "MOBL",
              "id": 222,
              "contract": "0x5fef39b578deeefa4485a7e5944c7691677d5dd4",
              "logo": "https://mobula.mypinata.cloud/ipfs/QmTn6CLSsURsMfEwQA4o5SwBJKjrHJrtuYcNKd14kdJ77o?pinataGatewayToken=WQn5Yv-xwpvoa6O4Kc6yMwL4kG-UCFSmo0FL2pcIRAdN-V8XYVaL7udtsC7R3_Nm"
            },
            "type": "buy",
            "method_id": null,
            "hash": "0xa52485281b07659f91b63d9e1924871cb6f90b666255d24dd03bd0febed0cdaf",
            "blockchain": "Polygon",
            "amount": 1,
            "amount_usd": 0,
            "to": "0x77a89c51f106d6cd547542a3a83fe73cb4459135",
            "from": "0x0490d25a95befdde088c8a3d741b5afba29cb8d9"
          }
          // ... more transactions ...
        ]
      }
    }
    ```
  </Step>
</Steps>

### Leveraging Transaction Data

With this data, you can:

* **Track Wallet Activity**: Observe the frequency and types of transactions over time.
* **Analyze Spending Patterns**: Gain insights into how the wallet interacts with various tokens and blockchains.
* **Build Financial Histories**: Compile comprehensive financial records for wallets, useful for audits or portfolio analysis.

### Need Help?

Our support team is available to assist with your queries or integration issues.

<CardGroup>
  <Card title="Support" icon="Telegram" href="https://t.me/mobuladevelopers">
    Telegram
  </Card>

  <Card title="Support" icon="Slack" href="https://join.slack.com/t/mobulaapi/shared_invite/zt-29zrrpjnl-I0tyD73sy7zKy8q~KLL3Ug">
    Slack
  </Card>

  <Card title="Support" icon="Discord" href="https://discord.gg/JVT7xKm3AD">
    Discord
  </Card>

  <Card title="Email Support" icon="envelope" href="mailto:contact@mobulalabs.org">
    Email
  </Card>
</CardGroup>
