Onyx Protocol
  • 📖Onyx Documentation
  • ☕Getting Started
    • 🔬Networks
    • 📒Protocol Math
      • oToken and Underlying Decimals
      • Interpreting Exchange Rates
      • Calculating Accrued Interest
      • Calculating the APY Using Rate Per Block
    • 💹Gas Costs
  • 🧑‍💻OTokens
    • Mint
    • Redeem
    • Redeem Underlying
    • Borrow
    • Repay Borrow
    • Repay Borrow Behalf
    • Transfer
    • Liquidate Borrow
    • Key Events
    • Error Codes
    • Failure Info
    • Exchange Rate
    • Get Cash
    • Total Borrow
    • Borrow Balance
    • Borrow Rate
    • Total Supply
    • Underlying Balance
    • Supply Rate
    • Total Reserves
    • Reserve Factor
  • ⚙️Comptroller
    • Enter Markets
    • Exit Market
    • Get Assets In
    • Collateral Factor
    • Get Account Liquidity
    • Close Factor
    • Liquidation Incentive
    • Key Events
    • Error Codes
    • Failure Info
    • XCN Distribution Speeds
    • Claim XCN
    • Market Metadata
  • 👨‍👩‍👦Governance
    • Governor Alpha
    • Quorum Votes
    • Proposal Threshold
    • Proposal Max Operations
    • Voting Delay
    • Voting Period
    • Propose
    • Queue
    • Execute
    • Cancel
    • Get Actions
    • Get Receipt
    • State
    • Cast Vote
    • Cast Vote By Signature
    • Timelock
    • Pause Guardian
  • 🔡API
    • Basic API
      • GET: /otoken
      • GET: /market_history/graph
      • GET: /user/history
      • GET: /get_liquidators
      • GET: /get_liquidator:account
      • GET: /get_liquidator_detail:account
      • GET: /liquidator
    • GraphQL API
      • oTokens Subgraph
      • History Subgraph
      • Governance Subgraph
    • Governance API
      • GET: /proposal
      • GET: /proposal/:proposalId
      • GET: /voter/:proposalId
      • GET: /voter/accounts
      • GET: /voter/history/:address
    • Shared Data Types
  • 📖Onyx.js
    • Onyx Constructor
    • API Methods
      • Account
      • oToken
      • Market History
      • Governance
    • oToken Methods
      • Supply
      • Redeem
      • Borrow
      • Repay Borrow
    • XCN Methods
      • To Checksum Address
      • Get XCN Balance
      • Get XCN Accrued
      • Claim XCN
      • Delegate
      • Delegate By Sig
      • Create Delegate Signature
    • Comptroller Methods
      • Enter Markets
      • Exit Market
    • Ethereum Methods
      • Read
      • Trx
      • Get Balance
    • Governance Methods
      • Cast Vote
      • Cast Vote By Sig
      • Create Vote Signature
    • Price Feed Methods
      • Get Price
    • Utility Methods
      • Get Address
      • Get ABI
      • Get Network Name With Chain ID
  • 🔒Security
    • Bug Bounty Program
  • 📄Terms of Service
Powered by GitBook
On this page
  1. API
  2. Basic API

GET: /user/history

The user history service retrieves historical transaction information about users. You can use this API to find out the user history.

UserHistoryRequest

The request to the User History API can specify a number of filters, such as which accounts to retrieve information about.

{
  "user_address": "0xa0df350d2637096571F7A701CBc1C5fdE30dF76A",
  "offset": 0,
  "limit": 100
}
Type
Key
Description

string

user_address

The requested user address

uint32

offset

Offset of pagination. Default: 0

uint32

limit

Limit of pagination

UserHistoryResponse

The user history graph API response contains the transaction data of specific or all users.

Type
Key
Description

bool

status

If set false, indicates an error returning data

Struct

data

User transaction data. See UserHistoryData

UserHistoryData

Type
Key
Description

uint32

count

Count of records

repeated UserHistoryDataRecord

rows

The list of records (see UserHistoryDataRecord below) matching the requested filter

UserHistoryDataRecord

Type
Key
Description

uint32

id

History id

string

user_address

User address

string

from

From address

string

to

To address

uint32

blockNumber

Block number of graph history

uint32

blockTimestamp

Unix block timestamp

string

txHash

Transaction Hash

string

logIndex

Log Index

string

action

User action

string

symbol

Symbol

uint32

decimal

Asset decimal

string

amount

Asset amount

uint32

gasFee

Gas fee

string

txFee

Transaction fee

string

data

Transaction logs

string

oTokenAddress

oToken address

Timestamp

createdAt

Creation timestamp

Timestamp

updatedAt

Updat timestamp

PreviousGET: /market_history/graphNextGET: /get_liquidators

Last updated 1 year ago

🔡