Price feed
In order to support a token and quote a correct price to the user, the Paymaster must be able to get its price in STRK token. In the case where the price is not available, the token will not be available in the paymaster even if it is listed in supported_tokens.
Supported Providers
Current supported price feed provider:
AVNU
- Mainnet: starknet.impulse.avnu.fi/v2/tokens/prices
- Sepolia: sepolia.impulse.avnu.fi/v2/tokens/prices
TipYou can contribute by adding new price feed provider 🚀
Price feed properties
Prop | Type | Description |
---|---|---|
price.endpoint | string | Price provider endpoint |
price.provider | string | Use AVNU Price API by setting this value to "avnu" |
Example
"price": {
"endpoint": "https://sepolia.impulse.avnu.fi/v2/tokens/prices",
"provider": "avnu"
},
Updated 11 days ago