Skip to content

User

This route returns the Gas.Zip history of a given address.

https://backend.gas.zip/v2/user/<address>

Schema

type Status = 'SEEN' | 'PENDING' | 'CONFIRMED' | 'PRIORITY' | 'CANCELLED'
 
interface UserHistory {
  user: [
    {
      deposit: Deposit
      txs: Transaction[]
    },
  ]
}
 
interface Deposit {
  block: number
  chain: number
  hash: string
  log: number
  sender: string
  shorts: number[]
  status: Status
  time: number
  to: string
  usd: number
  value: string
}
 
interface Transaction {
  chain: number
  hash: string
  nonce: number
  refund: boolean
  cancelled: boolean
  signer: string
  status: Status
  time: number
  to: string
  usd: number
  value: number
}