Set your stock allocation
stocks_set_weightsFree. Sets your vault's target allocation across the 4 stocks in basis points (sum 10000), e.g. [4000, 3000, 2000, 1000]. Default is equal weight. 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>",
"weightsBps": "<weightsBps>"
},
"name": "stocks_set_weights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | Your vault address. | |
| weightsBps | Yes | 4 weights in basis points summing to 10000, in the basket's constituent order (see stocks_basket). |
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 |