pimlico_getTokenQuotes
This method returns the tenatative token exhange rates used by the ERC-20 Paymaster.
Request
{
"jsonrpc": "2.0",
"method": "pimlico_getTokenQuotes",
"params": [
{
"tokens": [
"0x6b175474e89094c44da98b954eedeac495271d0f",
"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
"0x514910771af9ca656af840dff83e8264ecf986ca"
] // list of tokens to get quotes for
},
"0x0000000071727De22E5E9d8BAf0edAc6f37da032", // entrypoint address
"0x1" // chainId
],
"id": 1
}
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"quotes": [
{
"paymaster": "0x0000000000000039cd5e8aE05257CE51C473ddd1",
"token": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"postOpGas": "0xa7f8",
"exchangeRate": "0xe9d61943a68eaf17e8",
"exchangeRateNativeToUsd": "0xe9e52828",
"balanceSlot": "0x2",
"allowanceSlot": "0x3"
},
{
"paymaster": "0x0000000000000039cd5e8aE05257CE51C473ddd1",
"token": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
"postOpGas": "0xb3b0",
"exchangeRate": "0x413e9b",
"exchangeRateNativeToUsd": "0xe9e52828",
"balanceSlot": "0x0",
"allowanceSlot": "0x2"
},
{
"paymaster": "0x0000000000000039cd5e8aE05257CE51C473ddd1",
"token": "0x514910771AF9Ca656af840dff83E8264EcF986CA",
"postOpGas": "0xa7f8",
"exchangeRate": "0x858e4a28293fe3fd1",
"exchangeRateNativeToUsd": "0xe9e52828",
"balanceSlot": "0x1",
"allowanceSlot": "0x2"
}
]
}
}