StakeStone API Reference
Router Intents API Swagger
Get Quote
POST
/protocol/get-protocol-quotes
Fetch the quote for staking into StakeStone from any chain using any token.
Base URL
https://api.pod.routerintents.com
Body
Response
Under protocol, set action
as express-stake
if you want the best path for the user. If the action
is set as stake
, our pathfinder will always generate a path that involves staking into StakeStone on Ethereum. In the case of express-stake
, our pathfinder will also evaluate if directly swapping into STONE will result in a better output.
Sample cURL
Compose Calldata
POST
/adapter/compose-adapter-calldata
Fetch the calldata to execute the quote fetched via the get-protocol-quotes
endpoint
Base URL
https://api.pod.routerintents.com
Body
Payload object from the response of the get-protocol-quotes
endpoint
Response
Notes:
In the payload,
prioritySteps
will contain the approval transaction calldata that needs to be executed before performing the transaction.The estimated
gasLimit
sent by our APIs are not based on any simulations because it is not possible to simulate gasLimit without having token allowance. ThegasLimit
sent by our APIs is a highly conservative estimate of the gas that a tx could use. Since the actual gas limit will be much lower, we suggest that the API users estimate thegasLimit
themselves once the approval tx is mined.
Last updated