barker_execution_quote
EXECUTION QUOTE (non-custodial): buy an unsigned, ready-to-sign transaction that deposits into or redeems from a stablecoin vault. Returns transaction_request {chainId,from,to,data,value} + route + risk summary + approval info. Barker NEVER broadcasts and never holds funds — return the transaction to YOUR user's wallet to sign; vault shares always go to signer_address (receiver is not a parameter). Same-chain only (self/portals adapters). pool_uid takes EITHER a Barker pool_uid OR the vault contract address — if you already know the vault address, quote directly, no discovery call needed. Flow: barker_yield_advisor → barker_executable_pools → this tool → your user signs. Asset identity is resolved by the selected pool; symbols and underlying-asset token addresses are never accepted as identity (pass the VAULT contract, not the asset contract). If a pool has multiple possible underlying assets, the backend rejects ambiguity instead of guessing. Use for 'deposit 1000 USDC into this vault', '帮我把 USDC 存进这个池子(自己签名)'. (paid: $0.05 per call via x402)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Default deposit | |
| amount | No | Same amount in human units ("1000" = 1000 USDC), converted server-side using the pool's own asset decimals. Use this if you don't want to compute base units yourself. Alternative to amount_base_units. | |
| chain_id | No | Optional, only useful when pool_uid is a contract address that is deployed at the same address on several chains (e.g. Aave aTokens). EVM chain id, e.g. 8453 for Base. | |
| pool_uid | Yes | Either the exact pool_uid from barker_executable_pools (copy verbatim), OR the vault contract address (0x + 40 hex) if that is what you already have — no discovery call needed. Both are matched exactly; partial names and keywords are rejected (POOL_NOT_FOUND), because this is a money path and Barker never guesses the pool. If one contract hosts several products (e.g. Pendle PT vs LP), you get 409 POOL_AMBIGUOUS with the exact candidates to choose from. | |
| slippage | No | Optional slippage tolerance, e.g. 0.005 | |
| signer_address | Yes | EVM address that will sign AND receive vault shares / redeemed assets. Mandatory — it is the tx sender and the share recipient, so Barker can never infer or default it. | |
| amount_base_units | Yes | Integer amount in token base units (1 USDC = 1000000). For redeem: underlying assets to withdraw. Send either this OR `amount` — not both (they are cross-checked and a mismatch is rejected). |