Sell (redeem) basket shares
stocks_sellFree. Cash out: redeem basket shares to USDC, or take the raw stock tokens in-kind (works any block, no vault needed, anyone holding shares can sell). Returns an UNSIGNED transaction {to, data, value, chainId} on Base; nothing happens until you sign it with your own wallet and broadcast it. Liquid never holds keys or funds.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vault": "<vault>",
"shares": "<shares>"
},
"name": "stocks_sell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | Vault whose shares you hold. | |
| inKind | No | true = receive the 4 stock tokens instead of USDC. | |
| shares | Yes | Shares to redeem (18 decimals; see stocks_portfolio). | |
| minUsdcOut | No | Optional slippage floor in USDC-6. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Contract to call | |
| data | No | Calldata, sign and broadcast as-is | |
| mode | No | permit: sign typedData first | |
| next | No | What to do next | |
| after | No | What to do after it confirms | |
| steps | No | When two transactions are needed (approve, then deposit), sign and send them in order | |
| value | No | Native value, always 0 | |
| chainId | No | Chain id (8453 = Base) | |
| typedData | No | EIP-712 permit to sign off-chain (free, no gas) | |
| attribution | No | ERC-8021 builder attribution suffix info |