StakeStone API Reference
Last updated
Last updated
POST
/protocol/get-protocol-quotes
Fetch the quote for staking into StakeStone from any chain using any token.
https://api.pod.routerintents.com
ReceiverAddress
string (required)
Wallet address to receive STONE
SourceTokens
array (required)
Array of tokens at the source side
Amount
array (required)
Array of token amounts being supplied
SourceChainId
int (required)
Network ID of the starting chain, for example: 137 for Polygon
Protocol
object (required)
Intent adapter information for StakeStone
SenderAddress
string (optional)
If SenderAddress is different from the ReceiverAddress
SlippageTolerance
float (optional)
1 means 1%; by default, this is set to 2%.
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.
POST
/adapter/compose-adapter-calldata
Fetch the calldata to execute the quote fetched via the get-protocol-quotes
endpoint
https://api.pod.routerintents.com
Payload object from the response of the get-protocol-quotes
endpoint
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. The gasLimit
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 the gasLimit
themselves once the approval tx is mined.