Raydium
Raydium is a decentralized exchange built on the Solana Blockchain.
Supported Chains
Available on Solana
Available Endpoints:
Click on the endpoint to jump to the section with full details
/getprice GET
- Returns the swap quotation for a given token pair on Raydium AMM
/getuserliquidity GET
- Returns the balance of a particular token pair of an account.
/gettokenliquidity GET
- Returns the individual token liquidity within the specified liquidity pool.
/swap POST
- Initiate a swap transaction on a specified DEX.
/addliquidity POST
- Add liquidity to a specified pool in a specified DEX.
/removeliquidity POST
- Remove liquidity from a specified pool in a specified DEX.
Also see Error Handling Details
DEX IDs
Please use DEX ID 2700 for Raydium.
See the DEX ID page for a complete list of DEX IDs.
Endpoint Details
/getprice
Returns the swap quotation for the given token pair.
GET
https://api.expand.network/dex/getprice
Query Parameters
Name | Type | Description |
---|
| | Remote procedural call URL. |
| | Refer to the DEX ID page for details. |
| | Comma separated values of token addresses whose price is to be fetched. |
| | Token amount for which the swap quotation is to be fetched. |
https://api.expand.network/dex/getprice?dexId=2700&path=So11111111111111111111111111111111111111112,EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amountIn=1000000000000000
{
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000",
"path": [
"So11111111111111111111111111111111111111112",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"amountsOut": [
"10000000000",
"1261071113"
]
}
}
back to top
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
Name | Type | Description |
---|
| | Remote procedural call URL. |
| | Refer to DEX ID page for details. |
| | Pool address whose liquidity is to be fetched. |
| | Public address of liquidity provider. |
https://api.expand.network/dex/getuserliquidity?dexId=2700&poolAddress=58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2&address=DgbCWnbXg43nmeiAveMCkUUPEpAr3rZo3iop3TyP6S63
{
"status": 200,
"msg": "success",
"data": {
"pairAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
"liquidity": "34665717201069",
"tokenA": "18456761489485",
"tokenB": "2508924971865"
}
}
back to top
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
Name | Type | Description |
---|
| | Remote procedural call URL. |
| | Pool address whose liquidity is to be fetched. |
| | Refer to DEX ID page for details. |
https://api.expand.network/dex/getpoolliquidity?dexId=2700&poolAddress=58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
{
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "45961012710"
}
}
back to top
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
Name | Type | Description |
---|
| | Remote procedural call URL. |
| | Refer to DEX ID page for details. |
| | Pool address whose token liquidity is to be fetched. |
https://api.expand.network/dex/gettokenliquidity?dexId=2700&poolAddress=58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
{
"status": 200,
"msg": "success",
"data": {
"WSOL": "733843263201",
"USDC": "294556177599"
}
}
back to top
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
Name | Type | Description |
---|
| | Remote procedural call URL. |
| | Refer to the DEX ID page for details. |
| | Comma-separated values of token addresses, inside an array, which needs to be swap. |
| | Amount of token to be swapped. |
| | Address of the sender of the token. |
| | Percentage of total swap value.
By default, 1. 0 <= slippage value <= 100 |
{
"dexId": "2700",
"from": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
"amountIn": "1000000000",
"path": [
"So11111111111111111111111111111111111111112",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
]
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "900",
"from": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
"to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
"data": "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MAbUFkAVFXZ3LDGvOzctPtbLqvBqagrVzkrqqQPBOYgAAAAAAAAADhOYVVMNjNzOUxuVTZqcEVUVTU3cmIycUhGRXRvb0Rq8Oe5OwAAAAClAAAAAAAAAAbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpEAQBEQAVAQESEhACEwMEBQYWBwgJCgsMFAENABEJAMqaOwAAAAB7CVMIAAAAABADAQAAAQkBGY8fTDpFImPUE7LNF+vLwaDliHNk5iYaEqgXkuoWWj4AAgUL",
"referenceId": "7f3a8c65a33c4109ab175b7d8b6d1c15"
}
}
With Slippage:
{
"dexId": "2700",
"from": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
"amountIn": "1000000000",
"path": [
"So11111111111111111111111111111111111111112",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"slippage": "10"
}
With Slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "900",
"from": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
"to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
"data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAHFUjAG1BZAFRV2dywxrzs3LT7Wy6rwamoK1c5K6qkDwTm/bKkuSbxgb6e6y0kykszqK4sgB2125CxqMqOVfgmQgE9bkcuZ6RuprS9C6ud/TXitMcvHW1Zwuq5XJQlc60i8fkvOQ/5YJ6K1De7jkwfGqQ6wF0kMIzKd96FEsVQkpLTq+Q8fB4h6qb5fIvTVeIb0SeWdHVsHI4QbG5xK6EW2XC4cOEt03mJFWHS6fqPJkMYNOtzby8k/CoqTf8f1dyk3/LLubdg7dsYVwYwMGOtM9e1cpbqAtTgM14xzq+kzELdasTDzvqfGb9UyNwPXk0c7uUyfSZIKynSsTy6pDRHIY1GUnlJ4KemWfiq3Ia8U8x8QkaaF3Zam61isbBbyGi17sm+ubFtGKgnOXbvibf96Ersm6rKDbFz24/aSuDeR4o0axAyMcl1BQzsjabeQDV8m8pg756PMxZaJVZlZSqCUzuoS7ZGYkZ4HXqa2rhYi6hrKszlE1jIRPVETkBkCHX9WkydmX0uxDvcDSNiac+w0IORr9ED/Y+9Y0U/9YtuI6kg3sTeRGTwuXxew5/kivghLMd/7RlS2oFJdI1UTmJL6wADBkZv5SEXMv/srbpyw5vnvIzlu8X3EmssQ5s6QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABt324ddloZPZy+FGzut5rBy0he1fWzeROoz1hX7/AKkGm4hX/quBhPtof2NGGMA12sQ53BrrO1WYoPAAAAAAAUvZScQ2AsM/IHeQ7RajUkyhuZdc8SGiqQz/7H34torNQVewWA8xxfzkSmJYLbz5147nWUOghKOTs1A2jSKJkwiqWjHLAguwAphcqSmQgXGUD+Y1y3bpnOT7iAVCi7glSkX6ZkOoLM2xLL0WaXoO4tYiUaKoYYA1gJFt7ZnCdIpcBg4ACQMA4fUFAAAAAA4ABQLAJwkADwIAAXwDAAAASMAbUFkAVFXZ3LDGvOzctPtbLqvBqagrVzkrqqQPBOYgAAAAAAAAADhaNUJZREs4djFiVlJ0QVdncnVNZG12c2czTmR2c05m8Oe5OwAAAAClAAAAAAAAAAbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpEAQBEQAVAQESEhACEwMEBQYWBwgJCgsMFAENABEJAMqaOwAAAACl3lIIAAAAABADAQAAAQkBGY8fTDpFImPUE7LNF+vLwaDliHNk5iYaEqgXkuoWWj4AAgUL",
"referenceId": "a3e868e4f5334ae38883584ffa44d798"
}
}
back to top
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
Name | Type | Description |
---|
| | Remote procedural call URL. |
| | Refer to the DEX ID page for details. |
| | Comma-separated values of token addresses, inside an array, which needs to be added to the pool. |
| | Comma-separated values of tokens amount, inside an array, which needs to be added to the pool. |
| | Address of the sender of the token. |
| | Percentage of total swap value.
By default, 1. 0 <= slippage value <= 100 |
{
"amountIn": [
"100000000",
"1000000"
],
"from": "3CpV6SbiX65BmZ8g3Bx7X1uMcWBueHxrpYbVrL1E5y8J",
"path": [
"7BgBvyjrZX1YKz4oh9mjb8ZScatkkwb8DzFx7LoiVkM3",
"So11111111111111111111111111111111111111112"
],
"dexId": "2700"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "900",
"from": "3CpV6SbiX65BmZ8g3Bx7X1uMcWBueHxrpYbVrL1E5y8J",
"to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
"data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAoTIL50GRZwGAaYW2Ao2FL43oJs0DlBxBj1Xme/4qVIATdD3P/t/DO1pzBrpS1xaaRywxcQdnuxSLl5MSIJSjU1AFDGXbEdOCsVyMfYSqKnNDywUM5i/EVEalaBU8b5grmMZm+2K/rD9/2xMclVb8Zt49BXP5W7D0uksP0M/cC4iy55LX6CCXZG8PqIMbiPxAkbA4R7w8nT6e6K0MZkNXzXII/HjJfNHnzvp/+optMcHs5MT2x2zZSH1R/JCX2iowFJ6Cx4E0HBtuxRtPKIX/F2wY1mGhDFnGq1tMprzBotlvfqd9VDlQaPc+tsni54IZf8WjJ8Rp3GVEDMlYIHuBVlqeqYDBUH0Q2ehyn8j7XvMJPvhdyScu14ooXvNGFBLzKrAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBV7BYDzHF/ORKYlgtvPnXjudZQ6CEo5OzUDaNIomTCEvZScQ2AsM/IHeQ7RajUkyhuZdc8SGiqQz/7H34torNWFsbWV7tFM88jou9VJPCjTaxuXC2wV2EzoN09RDjoA99ThHpEJdZ0Ip9+Dv+3xLYI5YIL2KD6Tj3kfeX/5WANAMGRm/lIRcy/+ytunLDm+e8jOW7xfcSayxDmzpAAAAA1rGv5a09TO8jPWu0n0e1SFuTVywy5mjetL7AzfLVTMoGm4hX/quBhPtof2NGGMA12sQ53BrrO1WYoPAAAAAAAQan1RcZLFxRIYzJTD1K8X9Y2u4Im6H9ROPb2YoAAAAABt324ddloZPZy+FGzut5rBy0he1fWzeROoz1hX7/AKlFlVA+AqmYQjqsF8ikOiqSc4HU0az7Q+328AdG53KC0QYOAAkDAOH1BQAAAAAOAAUCwCcJAAkCAAh8AwAAACC+dBkWcBgGmFtgKNhS+N6CbNA5QcQY9V5nv+KlSAE3IAAAAAAAAABIQ1NDR0t1R013NFoxUHZnRlBlM2g5TmhQTjFwN05TWaMmIQAAAAAApQAAAAAAAAAG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqRIECBAAEQEBCw4SBQoPBgIEAQwHCAMADRkDAOH1BQAAAACzCAIAAAAAAAAAAAAAAAAAEgMIAAABCQ==",
"referenceId": "34c563a373284101871473a7c58509c8"
}
}
With Slippage:
{
"amountIn": [
"100000000",
"1000000"
],
"from": "3CpV6SbiX65BmZ8g3Bx7X1uMcWBueHxrpYbVrL1E5y8J",
"path": [
"7BgBvyjrZX1YKz4oh9mjb8ZScatkkwb8DzFx7LoiVkM3",
"So11111111111111111111111111111111111111112"
],
"slippage": "10",
"dexId": "2700"
}
With Slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "900",
"from": "3CpV6SbiX65BmZ8g3Bx7X1uMcWBueHxrpYbVrL1E5y8J",
"to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
"data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAoTIL50GRZwGAaYW2Ao2FL43oJs0DlBxBj1Xme/4qVIATdD3P/t/DO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MIAAABCQ==",
"referenceId": "34c563a373284101871473a7c58509c8"
}
}
back to top
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
Name | Type | Description |
---|
| | |
| | Refer to the DEX ID page for details. |
| | Comma-separated values of token addresses, inside an array, which needs to be added to the pool. |
| | Address of the sender of the token. |
| | Total amount of liquidity to be removed from the given pool. |
| | |
| | Percentage of total value. By default, 1. 0 <= slippage value <= 10 |
{
"dexId": "2700",
"from": "HXjWEL3bYucHDpLi81NwCewYKaqJMPdCfxkaSZTu6K2s",
"liquidity": "10000",
"path": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"So11111111111111111111111111111111111111112"
],
"poolAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "900",
"from": "HXjWEL3bYucHDpLi81NwCewYKaqJMPdCfxkaSZTu6K2s",
"to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
"data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAHF/WaeXdTJ27Q/+deDFn6U7t40VnlvJwN5rXCtN67t/K8kaHYvpE8dlTOOztSa+a8k3mpfe7787cfTSa5IlRHtHA9bkcuZ6RuprS9C6ud/TXitMcvHW1Zwuq5XJQlc60i8fkvOQ/5YJ6K1De7jkwfGqQ6wF0kMIzKd96FEsVQkpLTq+Q8fB4h6qb5fIvTVeIb0SeWdHVsHI4QbG5xK6EW2XBsT5PYWOiP+v6gjENnRJfo5qkywMgxSCYqGuPMx4Kexrhw4S3TeYkVYdLp+o8mQxg063NvLyT8KipN/x/V3KTf8su5t2Dt2xhXBjAwY60z17VyluoC1OAzXjHOr6TMQt1qxMPO+p8Zv1TI3A9eTRzu5TJ9JkgrKdKxPLqkNEchjahLtkZiRngdeprauFiLqGsqzOUTWMhE9UROQGQIdf1aTJ2ZfS7EO9wNI2Jpz7DQg5Gv0QP9j71jRT/1i24jqSCs22+N/lu1YxJsx9m7BZadnIJ77Rrsw6dkMYzBAbJIcDgP8n9tpRklKZQIlRLblVwnq9QqGMmt3PPesAqVFBQyaxAyMcl1BQzsjabeQDV8m8pg756PMxZaJVZlZSqCUztGUnlJ4KemWfiq3Ia8U8x8QkaaF3Zam61isbBbyGi17sm+ubFtGKgnOXbvibf96Ersm6rKDbFz24/aSuDeR4o0AwZGb+UhFzL/7K26csOb57yM5bvF9xJrLEObOkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpBpuIV/6rgYT7aH9jRhjANdrEOdwa6ztVmKDwAAAAAAFL2UnENgLDPyB3kO0Wo1JMobmXXPEhoqkM/+x9+LaKzUFXsFgPMcX85EpiWC28+deO51lDoISjk7NQNo0iiZMIqloxywILsAKYXKkpkIFxlA/mNct26Zzk+4gFQou4JUr8kjAZlFtn2+0wnP2gKcVDku1xPghLNRo5eog7ef07gwYQAAkDAOH1BQAAAAAQAAUCwCcJABECAAF8AwAAAPWaeXdTJ27Q/+deDFn6U7t40VnlvJwN5rXCtN67t/K8IAAAAAAAAABCRllIdmF6VnJReXE3WDhSU3FLQUN1aGRDc2dBd0pOcfAdHwAAAAAApQAAAAAAAAAG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqRIEARMAFwEBFBYSAhUDBAUGBwICGAgJChYLAQwADQ4PCQQQJwAAAAAAABIDAQAAAQkBGY8fTDpFImPUE7LNF+vLwaDliHNk5iYaEqgXkuoWWj4AAgUL",
"referenceId": "636907790d65493eb9c77dcd9463a537"
}
}
With Slippage:
{
"dexId": "2700",
"from": "HXjWEL3bYucHDpLi81NwCewYKaqJMPdCfxkaSZTu6K2s",
"liquidity": "10000",
"path": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"So11111111111111111111111111111111111111112"
],
"poolAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
"slippage": "10"
}
With Slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "900",
"from": "HXjWEL3bYucHDpLi81NwCewYKaqJMPdCfxkaSZTu6K2s",
"to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
"data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAHF/WaeXdTJ27Q/+deDFn6U7t40VnlvJwN5rXCtN67t/K8kaHYvpE8dlTOOztSa+a8k3mpfe7787cfTSa5IlRHtHA9bkcuZ6RuprS9C6ud/TXitMcvHW1Zwuq5XJQlc60i8fkvOQ/5YJ6K1De7jkwfGqQ6wF0kMIzKd96FEsVQkpLTq+Q8fB4h6qb5fIvTVeIb0SeWdHVsHI4QbG5xK6EW2XBsT5PYWOiP+v6gjENnRJfo5qkywMgxSCYqGuPMx4Kexrhw4S3TeYkVYdLp+o8mQxg063NvLyT8KipN/x/V3KTf8su5t2Dt2xhXBjAwY60z17VyluoC1OAzXjHOr6TMQt1qxMPO+p8Zv1TI3A9eTRzu5TJ9JkgrKdKxPLqkNEchjahLtkZiRngdeprauFiLqGsqzOUTWMhE9UROQGQIdf1aTJ2ZfS7EO9wNI2Jpz7DQg5Gv0QP9j71jRT/1i24jqSCs22+N/lu1YxJsx9m7BZadnIJ77Rrsw6dkMYzBAbJIcDgP8n9tpRklKZQIlRLblVwnq9QqGMmt3PPesAqVFBQyaxAyMcl1BQzsjabeQDV8m8pg756PMxZaJVZlZSqCUztGUnlJ4KemWfiq3Ia8U8x8QkaaF3Zam61isbBbyGi17sm+ubFtGKgnOXbvibf96Ersm6rKDbFz24/aSuDeR4o0AwZGb+UhFzL/7K26csOb57yM5bvF9xJrLEObOkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpBpuIV/6rgYT7aH9jRhjANdrEOdwa6ztVmKDwAAAAAAFL2UnENgLDPyB3kO0Wo1JMobmXXPEhoqkM/+x9+LaKzUFXsFgPMcX85EpiWC28+deO51lDoISjk7NQNo0iiZMIqloxywILsAKYXKkpkIFxlA/mNct26Zzk+4gFQou4JUr8kjAZlFtn2+0wnP2gKcVDku1xPghLNRo5eog7ef07gwYQAAkDAOH1BQAAAAAQAAUCwCcJABECAAF8AwAAAPWaeXdTJ27Q/+deDFn6U7t40VnlvJwN5rXCtN67t/K8IAAAAAAAAABCRllIdmF6VnJReXE3WDhSU3FLQUN1aGRDc2dBd0pOcfAdHwAAAAAApQAAAAAAAAAG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqRIEARMAFwEBFBYSAhUDBAUGBwICGAgJChYLAQwADQ4PCQQQJwAAAAAAABIDAQAAAQkBGY8fTDpFImPUE7LNF+vLwaDliHNk5iYaEqgXkuoWWj4AAgUL",
"referenceId": "636907790d65493eb9c77dcd9463a537"
}
}
back to top
Error Handling Details
Error | Description |
---|
| Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error. |
| Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers. |
| Indicates that the specified endpoint or resource does not exist. |
| Indicates an internal server error. |
back to top