stake_quote
Generate a stake quote for token swaps by submitting a StakeQuoteRequestContainer, returning a SwapQuoteRequestContainer for blockchain staking operations.
Instructions
Retrieve a stake quote.
Expects a StakeQuoteRequestContainer, returns a SwapQuoteRequestContainer.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
stake_quote_requests | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"StakeQuoteRequest": {
"properties": {
"from_wallet": {
"description": "The name of the wallet that input_token is in.",
"title": "From Wallet",
"type": "string"
},
"input_amount": {
"description": "input amount to swap",
"title": "Input Amount",
"type": "number"
},
"input_token": {
"default": "So11111111111111111111111111111111111111112",
"title": "Input Token",
"type": "string"
},
"output_token": {
"description": "the public mint address of the output liquid staking derivative token to stake.",
"title": "Output Token",
"type": "string"
}
},
"required": [
"from_wallet",
"output_token",
"input_amount"
],
"title": "StakeQuoteRequest",
"type": "object"
},
"StakeQuoteRequestContainer": {
"properties": {
"stake_quote_requests": {
"items": {
"$ref": "#/$defs/StakeQuoteRequest"
},
"title": "Stake Quote Requests",
"type": "array"
}
},
"required": [
"stake_quote_requests"
],
"title": "StakeQuoteRequestContainer",
"type": "object"
}
},
"properties": {
"stake_quote_requests": {
"$ref": "#/$defs/StakeQuoteRequestContainer"
}
},
"required": [
"stake_quote_requests"
],
"title": "stake_quoteArguments",
"type": "object"
}