Terraswap Swaps
terraswap.swaps
Swaps table contains the information for swap behavior, it involves the sender (trader) and liquidity pool where the swap takes place.
Note: The terraswap.swaps table is different from terra.swaps. Terraswap swaps are swaps executed by smart contracts in Terraswap liquidity pools. Native swaps (terra.swaps) are on-chain swaps executed by Terra's minting/burning mechanism. For example, when $1 worth of UST is minted, $1 worth of LUNA is burned.
Table Schema
Field | Type | Description |
| text | The blockchain this swap was created on (Terra) |
| text | ID of blockchain to connect to, it can be columbus-3, columbus-4, columbus-5, etc. |
| number | The block number that this swap was recorded |
| number | The message index for this swap |
| number | The transaction index for this swap, some transactions contain multiple swaps |
| timestamp | The block timestamp that this swap was recorded |
| text | The transaction that contained this swap |
| address | Sender (trader) address for this swap |
| number | Amount to offer for this swap |
| number | USD Amount to offer for this swap |
| text | Currency to offer for this swap |
| number | Amount returned for this swap |
| number | USD Amount returned for this swap |
| text | The currency returned for the swap |
| text | The address for the pool where the currencies were swapped |
| text | The name of the pool where the currencies were swapped |
Last updated