Add Liquidity
POST /liquidity/add
POST
/liquidity/add
Add liquidity to a pool.
Authorizations
Request Body required
object
poolId
required
UUID of the pool to add liquidity to
string format: uuid
walletId
required
UUID of the wallet providing the liquidity
string format: uuid
token0Amount
required
Amount of token0 to deposit into the pool
string
token1Amount
required
Amount of token1 to deposit into the pool
string
Responses
200
Liquidity added successfully
object
transactionId
UUID of the transaction
string format: uuid
poolId
UUID of the pool
string format: uuid
walletId
UUID of the wallet that performed the action
string format: uuid
type
Whether liquidity was added or removed
string
token0Amount
Amount of token0 added or removed
string
token1Amount
Amount of token1 added or removed
string
lpTokenAmount
Amount of LP tokens minted or burned
string
status
Current state of the transaction
string
timestamp
When the transaction was initiated
string format: date-time
400
Bad Request
object
code
integer
400
message
string
Bad Request
details
string
Invalid input parameters