pimlico_getSupportedTokens
This method returns the list of tokens supported by the ERC-20 Paymaster for the current user on a specific chain.
Usage
{
"jsonrpc": "2.0",
"method": "pimlico_getSupportedTokens",
"params": [],
"id": 1
}
Parameters
This method takes no parameters.
Returns
The method returns an array of supported token objects. Each object contains information about a token that can be used for gas payments with the ERC-20 Paymaster.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"name": "Dai Stablecoin",
"decimals": 18,
"symbol": "DAI",
"token": "0x6B175474E89094C44Da98b954EedeAC495271d0F"
},
{
"name": "USD Coin",
"decimals": 6,
"symbol": "USDC",
"token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
]
}
Return Fields
Each token object in the response array includes the following fields:
-
name -
string
: The full name of the token (e.g., "Dai Stablecoin"). -
decimals -
number
: The number of decimal places the token uses. -
symbol -
string
: The token's symbol (e.g., "DAI", "USDC"). -
token -
Address
: The contract address of the token.