Quicknode
The following RPC methods, developed for Quicknode, are available on Ethereum.
expand.network has integrated the following RPC methods on Quicknode Marketplace:
Get Quotes
The user will be able to get quotes of the specified token pair from different Dexs in an aggregated manner.
URL:
https://quicknode.expand.network/dexPayload:
{
"method": "en_getQuotes",
"params": [
{
"path": [
"0x6b175474e89094c44da98b954eedeac495271d0f",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
],
"amountIn": "1000000000000000"
}
]
}{
"id": 1,
"result": {
"message": "success",
"method": "en_getQuotes",
"result": [
{
"dexId": "1300",
"dexName": "UniswapV3",
"value": "999"
},
{
"dexId": "1500",
"dexName": "CurveV2",
"value": "999"
},
{
"dexId": "1000",
"dexName": "UniswapV2",
"value": "997"
},
{
"dexId": "1100",
"dexName": "SushiswapV2",
"value": "996"
}
]
},
"jsonrpc": "2.0"
}Get User Liquidity
The user will be able to get the balance of a particular token pair of an account.
URL:
Payload:
Get Pool Liquidity
The user will be able to get the individual token liquidity within the specified liquidity pool.
URL:
Payload:
Swap
The user will be able to swap tokens on different Dex.
URL:
Payload:
Add Liquidity
The user will be able to add liquidity on different Dex.
URL:
Payload:
Remove Liquidity
The user will be able to remove liquidity on different Dex.
URL:
Payload:
Last updated

