GET /trade/v1/info/trade/{chainId}/{txHash}

Get information of a trade conducted in Unizen API.

Get information of a trade

get
Authorizations
Path parameters
chainIdnumberRequired

Chain id of the trade.

Example: 137
txHashstringRequired

Transaction hash of the trade.

Example: 0xe3d66fa91b621aea1bf743c70db809b47d0b67f82abce471819c84060577b0c2
Responses
200
Get information of a trade
application/json
get
GET /trade/v1/info/trade/{chainId}/{txHash} HTTP/1.1
Host: 
Authorization: Bearer Bearer
Accept: */*
200

Get information of a trade

{
  "type": "SINGLE-CHAIN",
  "sender": "0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1",
  "receiver": "0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1",
  "tokenFromAddress": "0x72fde64422ec9b5319ea83e6ee34b5290f47ac95",
  "tokenToAddress": "0xdd75542611d57c4b6e68168b14c3591c539022ed",
  "chainIdFrom": "1",
  "chainIdTo": "137",
  "amount": "1000000000000000000000",
  "txHash": "0x3b66976dea06304391c2966d7daec8aadd22388f91ef03c7bef6ff7710d96585",
  "txHashDst": "0x3b66976dea06304391c2966d7daec8aadd22388f91ef03c7bef6ff7710d96585",
  "native": "-25690709293901568",
  "gasUsed": "220248",
  "tokensReceived": "[]",
  "status": 1,
  "blockNumber": "12345",
  "txFrom": "0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1",
  "txTo": "0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1",
  "gasPrice": "1000000000"
}

Last updated

Was this helpful?