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
Name | Type | Description |
---|---|---|
| string (required) | Wallet address to receive STONE |
| array (required) | Array of tokens at the source side |
| array (required) | Array of token amounts being supplied |
| int (required) | Network ID of the starting chain, for example: 137 for Polygon |
| object (required) | Intent adapter information for StakeStone |
| string (optional) | If SenderAddress is different from the ReceiverAddress |
| float (optional) | 1 means 1%; by default, this is set to 2%. |
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