Skip to main content
POST
/
v0
/
amm
/
{poolId}
/
add-liquidity
Add Liquidity
curl --request POST \
  --url https://raydium.dial.to/api/v0/amm/{poolId}/add-liquidity \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "transaction",
  "account": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
}
'
{
  "type": "<unknown>",
  "transaction": "<string>"
}

Path Parameters

poolId
string
default:58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
required

ID of the Standard AMM pool

Query Parameters

percentage
integer
default:10

The percentage of liquidity to add

Required range: 0 <= x <= 100
amount
number

The amount of liquidity to add. Human readable value, e.g. 0.1 SOL

Required range: x >= 0

Body

application/json
type
enum<string>
default:transaction
required
Available options:
transaction
account
string
default:6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176
required

The public key of the account that executes the transaction

Response

200 - application/json

OK

type
any
required
transaction
string
required