list

Overview

The /tx/list API provides a list of transactions on WEMIX.Fi, filtered by type (total, swap, deposit, withdrawal, etc.).

List of transactions

GET /tx/list

Returns a list of transactions based on the specified transaction type and number.

Query Parameters

NameTypeDescription

type

string

Transaction type(i.e all, swap, pool, staking, etc.)

amount*

number

Number of transactions

skip*

number

Number of transaction information to skip in a single request

order

string

Sort response by time in descending or ascending order

{
  "type": "success",
  "message": "success",
  "data": [
    {
      "info": {
        "status": "string",
        "name": "string",
        "type": "string"
      },
      "hash": "string",
      "timestamp": "string",
      "block_number": 0,
      "from": "string",
      "to": "string",
      "lp_amount": 0,
      "token0": {
        "amount": "string",
        "price": 0,
        "address": "string",
        "symbol": "string",
        "decimal": 0
      },
      "token1": {
        "amount": "string",
        "price": 0,
        "address": "string",
        "symbol": "string",
        "decimal": 0
      },
      "data": {}
    }
  ]
}

Request

Parameter

NameTypeDescription

type

string

Transaction type(i.e all, swap, pool, staking, etc.)

amount

number

Number of transactions

skip

number

Number of transaction information to skip in a single request

order

string

Sort response by time in descending or ascending order

Response

Parameter

NameTypeDescription

type

string

success/failure status

message

string

success/failure message

data

-

-

status

string

success/failure status of transaction

name

string

Transaction type

type

string

Transaction type(i.e all, swap, add, etc.)

hash

string

Transaction hash

timestamp

stinrg

Transaction timestamp

block_number

number

Block number of transaction

from

stinrg

Transaction constructor

to

string

Contract interacting with the transaction

lp_amount

number

Amount of LP tokens minted/burned

amount

string

Amount of token0 or token1 from transaction

price

number

Price of token0 and token1

address

string

Address of token0 and token1

symbol

string

Symbol of token0 and token1

decimal

number

Decimal of token0 and token1

Sample

Request

curl

curl -X 'GET' \
  'https://openapi.wemix.fi/tx/list?type=all&amount=10&skip=0&order=DESC%20(default)%2C%20ASC' \
  -H 'accept: application/json'

Request URL

https://openapi.wemix.fi/tx/list?type=all&amount=10&skip=0&order=DESC%20(default)%2C%20ASC

Response

{
  "type": "success",
  "message": "success",
  "data": []
}