unstake_quote
Generate an unstake quote for liquid staking derivative tokens. Input wallet details and token amounts to receive a swap quote response for unstaking transactions.
Instructions
Retrieve an unstake quote.
Expects a UnstakeQuoteRequestContainer, returns a SwapQuoteRequestContainer.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
unstake_quote_requests | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"UnstakeQuoteRequest": {
"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": {
"description": "the public mint address of the input liquid staking derivative token to unstake.",
"title": "Input Token",
"type": "string"
},
"output_token": {
"default": "So11111111111111111111111111111111111111112",
"title": "Output Token",
"type": "string"
}
},
"required": [
"from_wallet",
"input_token",
"input_amount"
],
"title": "UnstakeQuoteRequest",
"type": "object"
},
"UnstakeQuoteRequestContainer": {
"properties": {
"unstake_quote_requests": {
"items": {
"$ref": "#/$defs/UnstakeQuoteRequest"
},
"title": "Unstake Quote Requests",
"type": "array"
}
},
"required": [
"unstake_quote_requests"
],
"title": "UnstakeQuoteRequestContainer",
"type": "object"
}
},
"properties": {
"unstake_quote_requests": {
"$ref": "#/$defs/UnstakeQuoteRequestContainer"
}
},
"required": [
"unstake_quote_requests"
],
"title": "unstake_quoteArguments",
"type": "object"
}