Stream Swaps
This channel provides recent swap transactions specified by the pools. It will tick every time there were updates in the targeted pools.
Subscribe
Parameters:
Parameter | Type | Description |
---|---|---|
| array | Specify which pool(s) to fetch. |
| boolean | OPTIONAL. Specify if return any failed swap transaction. |
Subscribe sample:
Event Result Details:
Field | Type | Description |
---|---|---|
| string | The slot number. |
| string | See |
swap
Field | Type | Description |
---|---|---|
| boolean | If the transaction is a successful. |
| string | Which project this pool belong to. |
| string | Program address of the pool. |
| string | Base token symbol of the pool. |
| string | Base token program address of the pool. |
| string | Quote token symbol of the pool. |
| string | Quote token program address of the pool. |
| number | Amount of the swap-in token. |
| number | Amount of the swap-out token. |
| string | The source account address where the swap-in token coming from. |
| string | The destination account address where the swap-out token coming from. |
| string | The owner address of this swap transaction. |
| string | Signature of the swap transaction. |
Sample event:
Last updated