Activities

Get activities

GET
/v1/users/{address}/activities

Authorization

OrionApiKey
x-orion-token<token>

In: header

Path Parameters

address*string

Stellar account or contract address

Query Parameters

cursor?|

Opaque cursor returned as next_cursor by a previous response. Pass it back verbatim. Do not parse or modify.

limit?|

Maximum activity rows to return. Defaults to 50, capped at 100.

Formatint32
Range1 <= value <= 100
as_of_ledger?|

Return feed rows at or before this ledger sequence number. Cannot be combined with to_ledger.

Formatint64
Range0 <= value
protocol?|

Filter by protocol id (e.g. "blend").

activity_type?|

Filter by activity type. Accepts a single value (e.g. "deposit") or a comma-separated list (e.g. "deposit,withdraw"); rows matching any listed type are returned. Supported values: deposit, withdraw, borrow, repay, liquidation, claim_rewards, flash_loan, bad_debt, swap, add_liquidity, remove_liquidity, mint, burn, contract_status_change, and the exact Blend event names supply, supply_collateral, withdraw_collateral, claim, new_auction, fill_auction, delete_auction, set_status, set_reserve, queue_set_reserve, cancel_set_reserve, update_pool, set_admin, gulp, gulp_emissions, reserve_emission_update, defaulted_debt.

contract?|

Filter activities by the contract they touched (e.g. a Blend pool contract address).

tx_hash?|

Filter activities by transaction hash.

from_ledger?|

Filter activities from this ledger sequence (inclusive).

Formatint64
Range0 <= value
to_ledger?|

Filter activities up to this ledger sequence (inclusive).

Formatint64
Range0 <= value

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/users/string/activities"
{  "data": {    "activities": [      {        "activity_type": "deposit",        "address": "string",        "amount": "string",        "asset_decimals": 0,        "asset_id": "string",        "asset_symbol": "string",        "contract": "string",        "counterparty": "string",        "id": "string",        "ledger": 0,        "metadata": null,        "protocol": "string",        "share_amount": "string",        "share_type": "string",        "timestamp": "2019-08-24T14:15:22Z",        "tx_hash": "string",        "usd_value": "string"      }    ],    "address": "string",    "next_cursor": "string"  },  "enrichment": {    "assets": {      "property1": {        "decimals": 0,        "price_source": null,        "price_usd": "string",        "symbol": "string",        "tags": [          "string"        ]      },      "property2": {        "decimals": 0,        "price_source": null,        "price_usd": "string",        "symbol": "string",        "tags": [          "string"        ]      }    },    "contracts": {      "property1": {        "name": "string",        "position_types": [          "collateral"        ],        "protocol": "string",        "status": "active",        "version": "string"      },      "property2": {        "name": "string",        "position_types": [          "collateral"        ],        "protocol": "string",        "status": "active",        "version": "string"      }    }  },  "meta": {    "as_of_ledger": 0,    "attribution_confidence": 0,    "data_staleness_seconds": 0,    "last_indexed_ledger": 0,    "ledger_lag_seconds": 0,    "oracle_staleness_seconds": 0,    "partial_result": true,    "requested_ledger": 0,    "response_time_ms": 0,    "sources": [      "soroban_rpc"    ]  }}