[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-optimism-actions-cli":3,"mdc--xj7cpy-key":34,"related-org-optimism-actions-cli":3976,"related-repo-optimism-actions-cli":4002},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"actions-cli","interact with Actions SDK via CLI","Invoke the Actions SDK from the shell - query assets\u002Fchains, derive an EOA address from a PRIVATE_KEY env var, read balances. Use when an agent needs to interact with the Actions SDK without embedding TypeScript.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"optimism","Optimism","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Foptimism.png","ethereum-optimism",[13,17,20],{"name":14,"slug":15,"type":16},"CLI","cli","tag",{"name":18,"slug":19,"type":16},"Web3","web3",{"name":21,"slug":22,"type":16},"Ethereum","ethereum",30,"https:\u002F\u002Fgithub.com\u002Fethereum-optimism\u002Factions","2026-07-13T06:04:06.176829",null,21,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"DeFi Actions SDK for the OP Stack","https:\u002F\u002Fgithub.com\u002Fethereum-optimism\u002Factions\u002Ftree\u002FHEAD\u002Fpackages\u002Fcli","---\nname: actions-cli\ndescription: Invoke the Actions SDK from the shell - query assets\u002Fchains, derive an EOA address from a PRIVATE_KEY env var, read balances. Use when an agent needs to interact with the Actions SDK without embedding TypeScript.\ncompatibility: Requires Node.js >=18 and the PRIVATE_KEY env var for wallet-scoped commands.\n---\n\n# Actions CLI - Agent Skill\n\n## Invocation\n\nSpawn the `actions` binary as a subprocess. **Always pass `--json`** (as\nthe first flag) - the default output is human-readable and not intended\nfor parsing. With `--json`, stdout is a bare JSON document on success\nand stderr is the error envelope on failure.\n\n```sh\nactions --json assets\nactions --json wallet balance --chain base-sepolia\n```\n\n## Command tree\n\n- `actions assets` - configured asset allowlist.\n- `actions chains` - configured chain shortnames + IDs.\n- `actions lend markets [--asset \u003Csymbol>] [--chain \u003Cname> | --chain-id \u003Cid>]` -\n  lending markets across configured providers, optionally filtered to one\n  asset and\u002For one chain (no wallet).\n- `actions lend market --market \u003Cname>` - inspect one market by name\n  (no wallet).\n- `actions borrow markets [--collateral \u003Csymbol>] [--borrow-asset \u003Csymbol>]\n[--chain \u003Cname> | --chain-id \u003Cid>]` - borrow markets across configured\n  providers, optionally filtered (no wallet).\n- `actions borrow market --market \u003Cname>` - inspect one borrow market\n  by name (no wallet).\n- `actions borrow position --market \u003Cname> --wallet \u003Caddress>` -\n  read any wallet's borrow position (no `PRIVATE_KEY` required).\n- `actions swap markets [--chain \u003Cname>]` - all swap markets across\n  configured providers (no wallet).\n- `actions swap market --pool \u003Cid> --chain \u003Cname>` - inspect one swap\n  market by pool id (no wallet).\n- `actions swap quote --in \u003Csymbol> --out \u003Csymbol>\n(--amount-in \u003Cn> | --amount-out \u003Cn>) --chain \u003Cname>\n[--provider uniswap|velodrome] [--slippage \u003Cpct>]` - best quote\n  (no wallet).\n- `actions swap quotes ...` - same flag set; returns every provider's\n  quote sorted best price first.\n- `actions ens address \u003Cname>` - forward-resolve an ENS name to its\n  address on Ethereum mainnet (no wallet).\n- `actions ens name \u003Caddress>` - reverse-resolve an address to its\n  primary ENS name, or `name: null` when none is set (no wallet).\n- `actions ens info \u003Cinput>` - fetch the standard ENS profile text\n  records for a name or address (no wallet).\n- `actions wallet address` - EOA address derived from `PRIVATE_KEY`.\n- `actions wallet balance [--chain \u003Cname> | --chain-id \u003Cid>]` - balances\n  per chain + asset; the chain flags are mutually exclusive.\n- `actions wallet lend position --market \u003Cname>` - the wallet's current\n  balance and shares in a market.\n- `actions wallet lend open --market \u003Cname> --amount \u003Cn> [--approval-mode \u003Cexact|max>]` -\n  supply assets to a market. `--approval-mode max` approves max-uint to\n  amortise approvals across future supplies (default: `exact`).\n- `actions wallet lend close --market \u003Cname> (--amount \u003Cn> | --max)` -\n  withdraw assets. Pass `--max` to withdraw the wallet's full balance in\n  the market (the CLI fetches the position first; subject to inflight\n  interest accrual).\n- `actions wallet borrow position --market \u003Cname>` - the wallet's current\n  collateral, debt, LTV, and health factor in a borrow market.\n- `actions wallet borrow open --market \u003Cname> --borrow-amount \u003Cn>\n[--collateral-amount \u003Cn>] [--approval-mode \u003Cexact|max>]` - borrow\n  against existing or newly-deposited collateral. No `--max` (open path\n  only accepts strict amounts).\n- `actions wallet borrow close --market \u003Cname> [--borrow-amount \u003Cn> |\n--borrow-max] [--collateral-amount \u003Cn> | --collateral-max]` - unwind a\n  position. Each leg is independently xor'd; the borrow leg is required.\n  `--*-max` resolves on-chain at dispatch time so interest-accrual dust\n  doesn't strand the position.\n- `actions wallet borrow deposit-collateral --market \u003Cname> --amount \u003Cn>\n[--approval-mode \u003Cexact|max>]` - top up collateral without changing\n  debt.\n- `actions wallet borrow withdraw-collateral --market \u003Cname>\n(--amount \u003Cn> | --max)` - pull collateral back without touching debt.\n- `actions wallet borrow repay --market \u003Cname> (--amount \u003Cn> | --max)\n[--approval-mode \u003Cexact|max>]` - repay debt without touching collateral.\n- `actions wallet swap execute --in \u003Csymbol> --out \u003Csymbol>\n(--amount-in \u003Cn> | --amount-out \u003Cn>) --chain \u003Cname>\n[--provider uniswap|velodrome] [--slippage \u003Cpct>]` - execute a swap\n  on the resolved chain.\n\n## Wallet model\n\nThe CLI derives a viem `LocalAccount` from `PRIVATE_KEY` and wraps it in\nan EOA-backed Actions wallet via\n`actions.wallet.toActionsWallet(localAccount)`. No smart wallet, no\nbundler, no ERC-4337 UserOps - the signer pays gas directly. For the\ndemo, fund the EOA with testnet ETH on Base Sepolia.\n\n## Resolution rules\n\n- **Assets** - pass the `metadata.symbol` value from the allowlist\n  (e.g. `USDC_DEMO`, `OP_DEMO`, `ETH`). Case-insensitive. Run\n  `actions --json assets` for the current list.\n- **Chains** - pass a shortname (`base-sepolia`, `op-sepolia`) via\n  `--chain`, or a numeric id via `--chain-id` (mutually exclusive).\n  Both flags accept a comma-separated list to scope the SDK fan-out\n  to multiple chains. Run `actions --json chains` for the current\n  list.\n- **Markets (lend)** - pass the market `name` from the config allowlist\n  (e.g. `Gauntlet USDC`, `Aave ETH`). Case-insensitive; whitespace\n  and hyphens are ignored, so `gauntlet-usdc` and `gauntletusdc`\n  resolve to the same entry. The market entry carries its own chain\n  and asset, so no `--chain` is needed.\n- **Markets (borrow)** - same name-based resolution as lend, plus `\u002F`\n  is stripped (so `Demo dUSDC \u002F OP` and `demo-dusdc-op` collapse to the\n  same key). Borrow market identifiers are discriminated unions (e.g.\n  `{ kind: 'morpho-blue', marketId: '0x...', chainId: ... }`); the CLI\n  forwards the resolved config to the SDK so a future second provider\n  variant adds no CLI work.\n- **Markets (swap)** - addressed pair-wise via `--in\u002F--out\u002F--chain` for\n  quotes and execution. `--pool \u003Cid>` is only used for direct\n  `swap market` lookups; the `poolId` surfaces in `swap markets`.\n- **Amounts** - human-readable decimal numbers (e.g. `10`, `0.5`).\n  The SDK converts to wei using the asset's decimals.\n- **Slippage** - `--slippage` accepts a percent (e.g. `0.5` for 0.5%);\n  the CLI converts to the SDK's decimal form internally.\n- **Amount direction** - exactly one of `--amount-in` (exact-in) or\n  `--amount-out` (exact-out) is required for `swap quote`,\n  `swap quotes`, and `wallet swap execute`.\n- **Provider selection** - `--provider uniswap|velodrome` forces a\n  provider and skips routing. Omit to let the SDK pick the best\n  available.\n\n## Presentation hints (for LLM\u002Fagent callers)\n\nThese are rules for rendering CLI output to humans, not rules for the\nCLI itself.\n\n- **Chain labels - only when disambiguating.** When showing a list\n  (balances, markets, positions, pools), mention the chain only for\n  entries that share their name\u002Fsymbol\u002Fmarket with another entry on a\n  different chain in the same response. If every row is uniquely\n  identifiable by its name alone, drop the chain label. Count chain\n  occurrences **after** skipping zero balances. Example: two chains\n  in the raw payload, but only one has a non-zero balance of `X` -\n  render as `X \u003Camount>` with no chain. When the user explicitly scopes\n  a question to one chain, still omit the label.\n- **Zero rows - skip.** Don't render zero balances, empty positions,\n  or pools with no meaningful data, unless the user specifically asked\n  about that zero value (\"do I have any X on op-sepolia\").\n- **Raw addresses - omit by default.** Wallet\u002Fpool\u002Fmarket\u002Fcontract\n  addresses in a listing add noise. Show them only when the user asks\n  for them explicitly, and even then truncate (`0xabc…def`).\n\n## Output\n\nWith `--json`:\n\n- Success: bare JSON document on stdout, exit 0. No envelope (matches\n  `gh` and AWS CLI conventions).\n- Error: JSON `{error, code, retryable, retry_after_ms?, details?}` on\n  stderr, non-zero exit. `retryable: true` means the caller may retry\n  (typically network failures). `retry_after_ms` is present when a\n  specific back-off is recommended. `details` is redacted - bundler\n  URLs with API keys, signer metadata, and raw viem request bodies are\n  scrubbed.\n\nWithout `--json` (default):\n\n- Success: plain text on stdout intended for human reading. Not stable\n  across versions.\n- Error: `Error (\u003Ccode>): \u003Cmessage>` on stderr, exit code per the table\n  below.\n\n## Balance semantics\n\nWithin a single `actions wallet balance` call, the SDK fans out via\n`Promise.all` over (asset x chain), so any single failing RPC rejects\nthe whole call with a `network` error. Retries may succeed on a\ndifferent call - do not assume per-chain isolation.\n\nTo shrink the failure surface, scope the call with `--chain` or\n`--chain-id` (both accept a comma-separated list). The SDK only\nqueries the chains you pass.\n\n## Lend semantics\n\n`wallet lend open` and `wallet lend close` emit a structured envelope\non stdout:\n\n```json\n{\n  \"action\": \"open\" | \"close\",\n  \"market\": { \"name\": \"...\", \"address\": \"0x...\", \"chainId\": ..., \"provider\": \"...\" },\n  \"asset\":  { \"symbol\": \"...\" },\n  \"amount\": \u003Cnumber>,\n  \"transactions\": [ { \"transactionHash\": \"0x...\", \"status\": \"success\", ... } ]\n}\n```\n\n`transactions` is always an array. On EOA the SDK sends approval +\nposition as two sequential transactions when an approval is required,\nso `open` returns 1-2 receipts and `close` returns 1. Bigint receipt\nfields (`blockNumber`, `gasUsed`) are stringified.\n\nA receipt with `status: \"reverted\"` is normalised to a `code: \"onchain\"`\nerror envelope on stderr (exit 5), so callers do not need to inspect\nreceipt status to detect failure.\n\n`wallet lend position` returns the SDK `LendMarketPosition` shape\nverbatim: `{ balance, balanceFormatted, shares, sharesFormatted, marketId }`\nwith bigint fields stringified.\n\n`lend markets` and `lend market` return the SDK `LendMarket` shape(s)\nverbatim: `{ marketId, name, asset, supply, apy, metadata }`. These do\nnot require `PRIVATE_KEY`.\n\nNL -> command examples:\n\n- \"what markets can I lend in\" -> `actions --json lend markets`\n- \"supply 10 USDC to Gauntlet\" -> `actions --json wallet lend open --market gauntlet-usdc --amount 10`\n- \"deposit 0.5 ETH into Aave on op-sepolia\" -> `actions --json wallet lend open --market aave-eth --amount 0.5`\n- \"withdraw 5 USDC from Gauntlet\" -> `actions --json wallet lend close --market gauntlet-usdc --amount 5`\n- \"how much do I have in Gauntlet\" -> `actions --json wallet lend position --market gauntlet-usdc`\n\n## Borrow semantics\n\nThe wallet-scoped write verbs (`open`, `close`, `deposit-collateral`,\n`withdraw-collateral`, `repay`) emit a structured envelope on stdout:\n\n```json\n{\n  \"action\": \"open\" | \"close\" | \"depositCollateral\" | \"withdrawCollateral\" | \"repay\",\n  \"market\": {\n    \"name\": \"...\",\n    \"marketId\": { \"kind\": \"morpho-blue\", \"marketId\": \"0x...\", \"chainId\": ... },\n    \"chainId\": ...,\n    \"provider\": \"morpho\"\n  },\n  \"borrowAmount\":     \u003Cnumber | \"max\">,\n  \"collateralAmount\": \u003Cnumber | \"max\">,\n  \"transactions\": [ { \"transactionHash\": \"0x...\", \"status\": \"success\", ... } ],\n  \"ltv\": \u003Cnumber | null>,\n  \"healthFactor\": \u003Cnumber | null>,\n  \"liquidationPriceFormatted\": \"\u003Cstring>\"\n}\n```\n\n`borrowAmount` \u002F `collateralAmount` echo what the verb touched (the\ninverse pair is omitted; e.g. `repay` reports only `borrowAmount`). The\nliteral string `\"max\"` means the SDK resolved the full balance at\ndispatch time. `ltv` and `healthFactor` come from the SDK's\n`positionAfter` snapshot and are `null` when the action left no debt\n(divide-by-zero guard); they are omitted when the SDK did not surface a\n`positionAfter`. `transactions` is always an array, normalised the same\nway as lend \u002F swap.\n\nA receipt with `status: \"reverted\"` is normalised to a `code: \"onchain\"`\nerror envelope on stderr (exit 5).\n\n`actions borrow position --market \u003Cname> --wallet \u003Caddress>` reads any wallet's\nposition without needing `PRIVATE_KEY`. `wallet borrow position` uses the\nconnected wallet.\n\n`borrow markets` \u002F `borrow market` \u002F both `position` commands return the\nSDK shapes verbatim with bigints stringified. Position fields `ltv` and\n`healthFactor` are `null` when there is no outstanding debt.\n\nNL -> command examples:\n\n- \"what borrow markets are available\" -> `actions --json borrow markets`\n- \"borrow 1 OP against 2 USDC of collateral on the demo market\" ->\n  `actions --json wallet borrow open --market demo-dusdc-op --borrow-amount 1 --collateral-amount 2`\n- \"close my borrow position completely\" ->\n  `actions --json wallet borrow close --market demo-dusdc-op --borrow-max --collateral-max`\n- \"repay all my debt on demo dUSDC\u002FOP\" ->\n  `actions --json wallet borrow repay --market demo-dusdc-op --max`\n- \"withdraw all collateral from demo dUSDC\u002FOP\" ->\n  `actions --json wallet borrow withdraw-collateral --market demo-dusdc-op --max`\n- \"top up 5 USDC of collateral on demo dUSDC\u002FOP\" ->\n  `actions --json wallet borrow deposit-collateral --market demo-dusdc-op --amount 5`\n- \"what's the health factor of 0x... on demo dUSDC\u002FOP\" ->\n  `actions --json borrow position --market demo-dusdc-op --wallet 0x...`\n- \"how am I doing in demo dUSDC\u002FOP\" ->\n  `actions --json wallet borrow position --market demo-dusdc-op`\n\n## Swap semantics\n\n`swap quote` returns the SDK `SwapQuote` shape verbatim: amounts (both\ndisplay and `Raw` bigint), price + price-impact, slippage (decimal),\ndeadline, and pre-built `execution` calldata. `swap quotes` is the\nmulti-provider variant sorted by `amountOutRaw` desc.\n\n`wallet swap execute` emits a structured envelope on stdout:\n\n```json\n{\n  \"action\": \"execute\",\n  \"assetIn\":  { \"symbol\": \"USDC_DEMO\" },\n  \"assetOut\": { \"symbol\": \"OP_DEMO\" },\n  \"amountIn\": 5, \"amountOut\": 4.9,\n  \"amountInRaw\":  \"5000000\",\n  \"amountOutRaw\": \"4900000000000000000\",\n  \"price\": 0.98, \"priceImpact\": 0.001,\n  \"transactions\": [ { \"transactionHash\": \"0x...\", \"status\": \"success\", ... } ]\n}\n```\n\n`transactions` is always an array. EOA execution can fan out into\ntoken-approval + Permit2-approval + swap (up to 3 receipts); smart\nwallets collapse to a single UserOp receipt. A receipt with\n`status: \"reverted\"` is normalised to `code: \"onchain\"` exit 5.\n\n`wallet swap execute --recipient \u003Caddr|ens>` accepts either a 0x address\nor an ENS name. Pass ENS names through this field when the user wants the\nswap output sent somewhere other than the connected wallet.\n\nNL -> command examples:\n\n- \"swap 5 USDC for OP on Unichain\" -> `actions --json wallet swap execute --in USDC_DEMO --out OP_DEMO --amount-in 5 --chain unichain`\n- \"buy 1 OP with USDC\" -> `actions --json wallet swap execute --in USDC_DEMO --out OP_DEMO --amount-out 1 --chain unichain`\n- \"swap 1 USDC for OP and send it to vitalik.eth\" -> `actions --json wallet swap execute --in USDC_DEMO --out OP_DEMO --amount-in 1 --chain unichain --recipient vitalik.eth`\n- \"send swap output to 0xd8dA...96045\" -> `actions --json wallet swap execute --in USDC_DEMO --out OP_DEMO --amount-in 1 --chain unichain --recipient 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045`\n- \"what's the best price for 100 USDC -> OP\" -> `actions --json swap quote --in USDC_DEMO --out OP_DEMO --amount-in 100 --chain unichain`\n- \"compare provider quotes\" -> `actions --json swap quotes --in USDC_DEMO --out OP_DEMO --amount-in 100 --chain unichain`\n- \"execute on Velodrome with 1% slippage\" -> `actions --json wallet swap execute --in USDC_DEMO --out OP_DEMO --amount-in 100 --chain unichain --provider velodrome --slippage 1`\n\n## ENS semantics\n\nRead-only name resolution on Ethereum mainnet (chain ID 1). No\n`PRIVATE_KEY` is required. Setting `MAINNET_RPC_URL` uses an\noperator-configured mainnet RPC; when it is unset, the SDK's public RPC\nfallback is used and the CLI prints a warning to stderr.\n\n- `address` takes an ENS name (must be dot-separated, e.g. `vitalik.eth`)\n  and emits `{ name, address }`. A non-name input (raw address, bare\n  label) exits `validation` (2).\n- `name` takes a `0x` address and emits `{ address, name }`, where\n  `name` is `null` when the address has no primary ENS record. A\n  non-address input exits `validation` (2).\n- `info` takes either a name or an address and emits the SDK `EnsInfo`\n  shape verbatim: the standard ENSIP-5 \u002F ENSIP-18 profile text records\n  (`avatar`, `display`, `description`, `url`, `email`, `keywords`,\n  `twitter`, `github`, `discord`, `reddit`), each `string` or `null`. An\n  all-`null` result is a normal success (the name exists but set no\n  records), not an error.\n\nSetting `MAINNET_RPC_URL` adds mainnet to the CLI's shared chain set, so\nit also becomes a valid `--chain mainnet` \u002F `--chain-id 1` target and is\nincluded in the default `wallet balance` fan-out. The demo lend\u002Fborrow\u002Fswap\nmarkets are testnet-only, so this affects reads (balances), not write targets.\n\nNL -> command examples:\n\n- \"what address is vitalik.eth\" -> `actions --json ens address vitalik.eth`\n- \"resolve vitalik.eth\" -> `actions --json ens address vitalik.eth`\n- \"what's the ENS name for 0xd8dA...96045\" -> `actions --json ens name 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045`\n- \"show vitalik.eth's profile\" -> `actions --json ens info vitalik.eth`\n- \"get the ENS records for 0xd8dA...96045\" -> `actions --json ens info 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045`\n\n## RPC trust\n\n`*_RPC_URL` env vars must point to operator-trusted endpoints. A\nmalicious RPC can return fake balance data, which will confuse the\ncaller. The same trust concern applies to `MAINNET_RPC_URL` for ENS\nreads: a fake RPC can return a wrong address for a name. If it is unset,\nthe SDK public mainnet fallback is used and the CLI warns on stderr.\n\n## Exit codes\n\n| Code | Meaning                                | Retryable |\n| ---- | -------------------------------------- | --------- |\n| 0    | Success                                | -         |\n| 1    | Unknown error                          | false     |\n| 2    | Validation (bad input)                 | false     |\n| 3    | Config error (missing env, malformed)  | false     |\n| 4    | Network error (RPC, timeout)           | true      |\n| 5    | Onchain error (revert, UserOp failure) | false (†) |\n\n(†) Specific onchain sub-classes (nonce conflicts, gas underpricing)\nmay set `retryable: true` via the `retryableOverride` mechanism. Treat\n`retryable` as the source of truth; the table row shows the default.\n\n## Unknown commands\n\nTypos (`actions nonsense`) exit 1 with commander's default plain-text\nerror on stderr - **not** the JSON error envelope. This distinction is\ndeliberate: the JSON envelope is only emitted for errors thrown from\nwithin a registered handler.\n",{"data":35,"body":37},{"name":4,"description":6,"compatibility":36},"Requires Node.js >=18 and the PRIVATE_KEY env var for wallet-scoped commands.",{"type":38,"children":39},"root",[40,49,56,92,157,163,516,522,550,556,919,925,930,993,999,1011,1064,1076,1097,1103,1132,1151,1157,1175,1617,1656,1677,1704,1744,1749,1807,1813,1852,2528,2609,2626,2650,2697,2701,2792,2798,2846,2856,3311,3335,3346,3350,3430,3436,3456,3651,3686,3690,3747,3753,3771,3777,3916,3944,3950,3970],{"type":41,"tag":42,"props":43,"children":45},"element","h1",{"id":44},"actions-cli-agent-skill",[46],{"type":47,"value":48},"text","Actions CLI - Agent Skill",{"type":41,"tag":50,"props":51,"children":53},"h2",{"id":52},"invocation",[54],{"type":47,"value":55},"Invocation",{"type":41,"tag":57,"props":58,"children":59},"p",{},[60,62,69,71,83,85,90],{"type":47,"value":61},"Spawn the ",{"type":41,"tag":63,"props":64,"children":66},"code",{"className":65},[],[67],{"type":47,"value":68},"actions",{"type":47,"value":70}," binary as a subprocess. ",{"type":41,"tag":72,"props":73,"children":74},"strong",{},[75,77],{"type":47,"value":76},"Always pass ",{"type":41,"tag":63,"props":78,"children":80},{"className":79},[],[81],{"type":47,"value":82},"--json",{"type":47,"value":84}," (as\nthe first flag) - the default output is human-readable and not intended\nfor parsing. With ",{"type":41,"tag":63,"props":86,"children":88},{"className":87},[],[89],{"type":47,"value":82},{"type":47,"value":91},", stdout is a bare JSON document on success\nand stderr is the error envelope on failure.",{"type":41,"tag":93,"props":94,"children":99},"pre",{"className":95,"code":96,"language":97,"meta":98,"style":98},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","actions --json assets\nactions --json wallet balance --chain base-sepolia\n","sh","",[100],{"type":41,"tag":63,"props":101,"children":102},{"__ignoreMap":98},[103,125],{"type":41,"tag":104,"props":105,"children":108},"span",{"class":106,"line":107},"line",1,[109,114,120],{"type":41,"tag":104,"props":110,"children":112},{"style":111},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[113],{"type":47,"value":68},{"type":41,"tag":104,"props":115,"children":117},{"style":116},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[118],{"type":47,"value":119}," --json",{"type":41,"tag":104,"props":121,"children":122},{"style":116},[123],{"type":47,"value":124}," assets\n",{"type":41,"tag":104,"props":126,"children":128},{"class":106,"line":127},2,[129,133,137,142,147,152],{"type":41,"tag":104,"props":130,"children":131},{"style":111},[132],{"type":47,"value":68},{"type":41,"tag":104,"props":134,"children":135},{"style":116},[136],{"type":47,"value":119},{"type":41,"tag":104,"props":138,"children":139},{"style":116},[140],{"type":47,"value":141}," wallet",{"type":41,"tag":104,"props":143,"children":144},{"style":116},[145],{"type":47,"value":146}," balance",{"type":41,"tag":104,"props":148,"children":149},{"style":116},[150],{"type":47,"value":151}," --chain",{"type":41,"tag":104,"props":153,"children":154},{"style":116},[155],{"type":47,"value":156}," base-sepolia\n",{"type":41,"tag":50,"props":158,"children":160},{"id":159},"command-tree",[161],{"type":47,"value":162},"Command tree",{"type":41,"tag":164,"props":165,"children":166},"ul",{},[167,179,190,201,212,223,234,253,264,275,286,297,308,327,338,356,367,378,405,424,435,453,472,483,494,505],{"type":41,"tag":168,"props":169,"children":170},"li",{},[171,177],{"type":41,"tag":63,"props":172,"children":174},{"className":173},[],[175],{"type":47,"value":176},"actions assets",{"type":47,"value":178}," - configured asset allowlist.",{"type":41,"tag":168,"props":180,"children":181},{},[182,188],{"type":41,"tag":63,"props":183,"children":185},{"className":184},[],[186],{"type":47,"value":187},"actions chains",{"type":47,"value":189}," - configured chain shortnames + IDs.",{"type":41,"tag":168,"props":191,"children":192},{},[193,199],{"type":41,"tag":63,"props":194,"children":196},{"className":195},[],[197],{"type":47,"value":198},"actions lend markets [--asset \u003Csymbol>] [--chain \u003Cname> | --chain-id \u003Cid>]",{"type":47,"value":200}," -\nlending markets across configured providers, optionally filtered to one\nasset and\u002For one chain (no wallet).",{"type":41,"tag":168,"props":202,"children":203},{},[204,210],{"type":41,"tag":63,"props":205,"children":207},{"className":206},[],[208],{"type":47,"value":209},"actions lend market --market \u003Cname>",{"type":47,"value":211}," - inspect one market by name\n(no wallet).",{"type":41,"tag":168,"props":213,"children":214},{},[215,221],{"type":41,"tag":63,"props":216,"children":218},{"className":217},[],[219],{"type":47,"value":220},"actions borrow markets [--collateral \u003Csymbol>] [--borrow-asset \u003Csymbol>] [--chain \u003Cname> | --chain-id \u003Cid>]",{"type":47,"value":222}," - borrow markets across configured\nproviders, optionally filtered (no wallet).",{"type":41,"tag":168,"props":224,"children":225},{},[226,232],{"type":41,"tag":63,"props":227,"children":229},{"className":228},[],[230],{"type":47,"value":231},"actions borrow market --market \u003Cname>",{"type":47,"value":233}," - inspect one borrow market\nby name (no wallet).",{"type":41,"tag":168,"props":235,"children":236},{},[237,243,245,251],{"type":41,"tag":63,"props":238,"children":240},{"className":239},[],[241],{"type":47,"value":242},"actions borrow position --market \u003Cname> --wallet \u003Caddress>",{"type":47,"value":244}," -\nread any wallet's borrow position (no ",{"type":41,"tag":63,"props":246,"children":248},{"className":247},[],[249],{"type":47,"value":250},"PRIVATE_KEY",{"type":47,"value":252}," required).",{"type":41,"tag":168,"props":254,"children":255},{},[256,262],{"type":41,"tag":63,"props":257,"children":259},{"className":258},[],[260],{"type":47,"value":261},"actions swap markets [--chain \u003Cname>]",{"type":47,"value":263}," - all swap markets across\nconfigured providers (no wallet).",{"type":41,"tag":168,"props":265,"children":266},{},[267,273],{"type":41,"tag":63,"props":268,"children":270},{"className":269},[],[271],{"type":47,"value":272},"actions swap market --pool \u003Cid> --chain \u003Cname>",{"type":47,"value":274}," - inspect one swap\nmarket by pool id (no wallet).",{"type":41,"tag":168,"props":276,"children":277},{},[278,284],{"type":41,"tag":63,"props":279,"children":281},{"className":280},[],[282],{"type":47,"value":283},"actions swap quote --in \u003Csymbol> --out \u003Csymbol> (--amount-in \u003Cn> | --amount-out \u003Cn>) --chain \u003Cname> [--provider uniswap|velodrome] [--slippage \u003Cpct>]",{"type":47,"value":285}," - best quote\n(no wallet).",{"type":41,"tag":168,"props":287,"children":288},{},[289,295],{"type":41,"tag":63,"props":290,"children":292},{"className":291},[],[293],{"type":47,"value":294},"actions swap quotes ...",{"type":47,"value":296}," - same flag set; returns every provider's\nquote sorted best price first.",{"type":41,"tag":168,"props":298,"children":299},{},[300,306],{"type":41,"tag":63,"props":301,"children":303},{"className":302},[],[304],{"type":47,"value":305},"actions ens address \u003Cname>",{"type":47,"value":307}," - forward-resolve an ENS name to its\naddress on Ethereum mainnet (no wallet).",{"type":41,"tag":168,"props":309,"children":310},{},[311,317,319,325],{"type":41,"tag":63,"props":312,"children":314},{"className":313},[],[315],{"type":47,"value":316},"actions ens name \u003Caddress>",{"type":47,"value":318}," - reverse-resolve an address to its\nprimary ENS name, or ",{"type":41,"tag":63,"props":320,"children":322},{"className":321},[],[323],{"type":47,"value":324},"name: null",{"type":47,"value":326}," when none is set (no wallet).",{"type":41,"tag":168,"props":328,"children":329},{},[330,336],{"type":41,"tag":63,"props":331,"children":333},{"className":332},[],[334],{"type":47,"value":335},"actions ens info \u003Cinput>",{"type":47,"value":337}," - fetch the standard ENS profile text\nrecords for a name or address (no wallet).",{"type":41,"tag":168,"props":339,"children":340},{},[341,347,349,354],{"type":41,"tag":63,"props":342,"children":344},{"className":343},[],[345],{"type":47,"value":346},"actions wallet address",{"type":47,"value":348}," - EOA address derived from ",{"type":41,"tag":63,"props":350,"children":352},{"className":351},[],[353],{"type":47,"value":250},{"type":47,"value":355},".",{"type":41,"tag":168,"props":357,"children":358},{},[359,365],{"type":41,"tag":63,"props":360,"children":362},{"className":361},[],[363],{"type":47,"value":364},"actions wallet balance [--chain \u003Cname> | --chain-id \u003Cid>]",{"type":47,"value":366}," - balances\nper chain + asset; the chain flags are mutually exclusive.",{"type":41,"tag":168,"props":368,"children":369},{},[370,376],{"type":41,"tag":63,"props":371,"children":373},{"className":372},[],[374],{"type":47,"value":375},"actions wallet lend position --market \u003Cname>",{"type":47,"value":377}," - the wallet's current\nbalance and shares in a market.",{"type":41,"tag":168,"props":379,"children":380},{},[381,387,389,395,397,403],{"type":41,"tag":63,"props":382,"children":384},{"className":383},[],[385],{"type":47,"value":386},"actions wallet lend open --market \u003Cname> --amount \u003Cn> [--approval-mode \u003Cexact|max>]",{"type":47,"value":388}," -\nsupply assets to a market. ",{"type":41,"tag":63,"props":390,"children":392},{"className":391},[],[393],{"type":47,"value":394},"--approval-mode max",{"type":47,"value":396}," approves max-uint to\namortise approvals across future supplies (default: ",{"type":41,"tag":63,"props":398,"children":400},{"className":399},[],[401],{"type":47,"value":402},"exact",{"type":47,"value":404},").",{"type":41,"tag":168,"props":406,"children":407},{},[408,414,416,422],{"type":41,"tag":63,"props":409,"children":411},{"className":410},[],[412],{"type":47,"value":413},"actions wallet lend close --market \u003Cname> (--amount \u003Cn> | --max)",{"type":47,"value":415}," -\nwithdraw assets. Pass ",{"type":41,"tag":63,"props":417,"children":419},{"className":418},[],[420],{"type":47,"value":421},"--max",{"type":47,"value":423}," to withdraw the wallet's full balance in\nthe market (the CLI fetches the position first; subject to inflight\ninterest accrual).",{"type":41,"tag":168,"props":425,"children":426},{},[427,433],{"type":41,"tag":63,"props":428,"children":430},{"className":429},[],[431],{"type":47,"value":432},"actions wallet borrow position --market \u003Cname>",{"type":47,"value":434}," - the wallet's current\ncollateral, debt, LTV, and health factor in a borrow market.",{"type":41,"tag":168,"props":436,"children":437},{},[438,444,446,451],{"type":41,"tag":63,"props":439,"children":441},{"className":440},[],[442],{"type":47,"value":443},"actions wallet borrow open --market \u003Cname> --borrow-amount \u003Cn> [--collateral-amount \u003Cn>] [--approval-mode \u003Cexact|max>]",{"type":47,"value":445}," - borrow\nagainst existing or newly-deposited collateral. No ",{"type":41,"tag":63,"props":447,"children":449},{"className":448},[],[450],{"type":47,"value":421},{"type":47,"value":452}," (open path\nonly accepts strict amounts).",{"type":41,"tag":168,"props":454,"children":455},{},[456,462,464,470],{"type":41,"tag":63,"props":457,"children":459},{"className":458},[],[460],{"type":47,"value":461},"actions wallet borrow close --market \u003Cname> [--borrow-amount \u003Cn> | --borrow-max] [--collateral-amount \u003Cn> | --collateral-max]",{"type":47,"value":463}," - unwind a\nposition. Each leg is independently xor'd; the borrow leg is required.\n",{"type":41,"tag":63,"props":465,"children":467},{"className":466},[],[468],{"type":47,"value":469},"--*-max",{"type":47,"value":471}," resolves on-chain at dispatch time so interest-accrual dust\ndoesn't strand the position.",{"type":41,"tag":168,"props":473,"children":474},{},[475,481],{"type":41,"tag":63,"props":476,"children":478},{"className":477},[],[479],{"type":47,"value":480},"actions wallet borrow deposit-collateral --market \u003Cname> --amount \u003Cn> [--approval-mode \u003Cexact|max>]",{"type":47,"value":482}," - top up collateral without changing\ndebt.",{"type":41,"tag":168,"props":484,"children":485},{},[486,492],{"type":41,"tag":63,"props":487,"children":489},{"className":488},[],[490],{"type":47,"value":491},"actions wallet borrow withdraw-collateral --market \u003Cname> (--amount \u003Cn> | --max)",{"type":47,"value":493}," - pull collateral back without touching debt.",{"type":41,"tag":168,"props":495,"children":496},{},[497,503],{"type":41,"tag":63,"props":498,"children":500},{"className":499},[],[501],{"type":47,"value":502},"actions wallet borrow repay --market \u003Cname> (--amount \u003Cn> | --max) [--approval-mode \u003Cexact|max>]",{"type":47,"value":504}," - repay debt without touching collateral.",{"type":41,"tag":168,"props":506,"children":507},{},[508,514],{"type":41,"tag":63,"props":509,"children":511},{"className":510},[],[512],{"type":47,"value":513},"actions wallet swap execute --in \u003Csymbol> --out \u003Csymbol> (--amount-in \u003Cn> | --amount-out \u003Cn>) --chain \u003Cname> [--provider uniswap|velodrome] [--slippage \u003Cpct>]",{"type":47,"value":515}," - execute a swap\non the resolved chain.",{"type":41,"tag":50,"props":517,"children":519},{"id":518},"wallet-model",[520],{"type":47,"value":521},"Wallet model",{"type":41,"tag":57,"props":523,"children":524},{},[525,527,533,535,540,542,548],{"type":47,"value":526},"The CLI derives a viem ",{"type":41,"tag":63,"props":528,"children":530},{"className":529},[],[531],{"type":47,"value":532},"LocalAccount",{"type":47,"value":534}," from ",{"type":41,"tag":63,"props":536,"children":538},{"className":537},[],[539],{"type":47,"value":250},{"type":47,"value":541}," and wraps it in\nan EOA-backed Actions wallet via\n",{"type":41,"tag":63,"props":543,"children":545},{"className":544},[],[546],{"type":47,"value":547},"actions.wallet.toActionsWallet(localAccount)",{"type":47,"value":549},". No smart wallet, no\nbundler, no ERC-4337 UserOps - the signer pays gas directly. For the\ndemo, fund the EOA with testnet ETH on Base Sepolia.",{"type":41,"tag":50,"props":551,"children":553},{"id":552},"resolution-rules",[554],{"type":47,"value":555},"Resolution rules",{"type":41,"tag":164,"props":557,"children":558},{},[559,608,657,713,754,803,828,853,902],{"type":41,"tag":168,"props":560,"children":561},{},[562,567,569,575,577,583,585,591,592,598,600,606],{"type":41,"tag":72,"props":563,"children":564},{},[565],{"type":47,"value":566},"Assets",{"type":47,"value":568}," - pass the ",{"type":41,"tag":63,"props":570,"children":572},{"className":571},[],[573],{"type":47,"value":574},"metadata.symbol",{"type":47,"value":576}," value from the allowlist\n(e.g. ",{"type":41,"tag":63,"props":578,"children":580},{"className":579},[],[581],{"type":47,"value":582},"USDC_DEMO",{"type":47,"value":584},", ",{"type":41,"tag":63,"props":586,"children":588},{"className":587},[],[589],{"type":47,"value":590},"OP_DEMO",{"type":47,"value":584},{"type":41,"tag":63,"props":593,"children":595},{"className":594},[],[596],{"type":47,"value":597},"ETH",{"type":47,"value":599},"). Case-insensitive. Run\n",{"type":41,"tag":63,"props":601,"children":603},{"className":602},[],[604],{"type":47,"value":605},"actions --json assets",{"type":47,"value":607}," for the current list.",{"type":41,"tag":168,"props":609,"children":610},{},[611,616,618,624,625,631,633,639,641,647,649,655],{"type":41,"tag":72,"props":612,"children":613},{},[614],{"type":47,"value":615},"Chains",{"type":47,"value":617}," - pass a shortname (",{"type":41,"tag":63,"props":619,"children":621},{"className":620},[],[622],{"type":47,"value":623},"base-sepolia",{"type":47,"value":584},{"type":41,"tag":63,"props":626,"children":628},{"className":627},[],[629],{"type":47,"value":630},"op-sepolia",{"type":47,"value":632},") via\n",{"type":41,"tag":63,"props":634,"children":636},{"className":635},[],[637],{"type":47,"value":638},"--chain",{"type":47,"value":640},", or a numeric id via ",{"type":41,"tag":63,"props":642,"children":644},{"className":643},[],[645],{"type":47,"value":646},"--chain-id",{"type":47,"value":648}," (mutually exclusive).\nBoth flags accept a comma-separated list to scope the SDK fan-out\nto multiple chains. Run ",{"type":41,"tag":63,"props":650,"children":652},{"className":651},[],[653],{"type":47,"value":654},"actions --json chains",{"type":47,"value":656}," for the current\nlist.",{"type":41,"tag":168,"props":658,"children":659},{},[660,665,667,673,675,681,682,688,690,696,698,704,706,711],{"type":41,"tag":72,"props":661,"children":662},{},[663],{"type":47,"value":664},"Markets (lend)",{"type":47,"value":666}," - pass the market ",{"type":41,"tag":63,"props":668,"children":670},{"className":669},[],[671],{"type":47,"value":672},"name",{"type":47,"value":674}," from the config allowlist\n(e.g. ",{"type":41,"tag":63,"props":676,"children":678},{"className":677},[],[679],{"type":47,"value":680},"Gauntlet USDC",{"type":47,"value":584},{"type":41,"tag":63,"props":683,"children":685},{"className":684},[],[686],{"type":47,"value":687},"Aave ETH",{"type":47,"value":689},"). Case-insensitive; whitespace\nand hyphens are ignored, so ",{"type":41,"tag":63,"props":691,"children":693},{"className":692},[],[694],{"type":47,"value":695},"gauntlet-usdc",{"type":47,"value":697}," and ",{"type":41,"tag":63,"props":699,"children":701},{"className":700},[],[702],{"type":47,"value":703},"gauntletusdc",{"type":47,"value":705},"\nresolve to the same entry. The market entry carries its own chain\nand asset, so no ",{"type":41,"tag":63,"props":707,"children":709},{"className":708},[],[710],{"type":47,"value":638},{"type":47,"value":712}," is needed.",{"type":41,"tag":168,"props":714,"children":715},{},[716,721,723,729,731,737,738,744,746,752],{"type":41,"tag":72,"props":717,"children":718},{},[719],{"type":47,"value":720},"Markets (borrow)",{"type":47,"value":722}," - same name-based resolution as lend, plus ",{"type":41,"tag":63,"props":724,"children":726},{"className":725},[],[727],{"type":47,"value":728},"\u002F",{"type":47,"value":730},"\nis stripped (so ",{"type":41,"tag":63,"props":732,"children":734},{"className":733},[],[735],{"type":47,"value":736},"Demo dUSDC \u002F OP",{"type":47,"value":697},{"type":41,"tag":63,"props":739,"children":741},{"className":740},[],[742],{"type":47,"value":743},"demo-dusdc-op",{"type":47,"value":745}," collapse to the\nsame key). Borrow market identifiers are discriminated unions (e.g.\n",{"type":41,"tag":63,"props":747,"children":749},{"className":748},[],[750],{"type":47,"value":751},"{ kind: 'morpho-blue', marketId: '0x...', chainId: ... }",{"type":47,"value":753},"); the CLI\nforwards the resolved config to the SDK so a future second provider\nvariant adds no CLI work.",{"type":41,"tag":168,"props":755,"children":756},{},[757,762,764,770,772,778,780,786,788,794,796,802],{"type":41,"tag":72,"props":758,"children":759},{},[760],{"type":47,"value":761},"Markets (swap)",{"type":47,"value":763}," - addressed pair-wise via ",{"type":41,"tag":63,"props":765,"children":767},{"className":766},[],[768],{"type":47,"value":769},"--in\u002F--out\u002F--chain",{"type":47,"value":771}," for\nquotes and execution. ",{"type":41,"tag":63,"props":773,"children":775},{"className":774},[],[776],{"type":47,"value":777},"--pool \u003Cid>",{"type":47,"value":779}," is only used for direct\n",{"type":41,"tag":63,"props":781,"children":783},{"className":782},[],[784],{"type":47,"value":785},"swap market",{"type":47,"value":787}," lookups; the ",{"type":41,"tag":63,"props":789,"children":791},{"className":790},[],[792],{"type":47,"value":793},"poolId",{"type":47,"value":795}," surfaces in ",{"type":41,"tag":63,"props":797,"children":799},{"className":798},[],[800],{"type":47,"value":801},"swap markets",{"type":47,"value":355},{"type":41,"tag":168,"props":804,"children":805},{},[806,811,813,819,820,826],{"type":41,"tag":72,"props":807,"children":808},{},[809],{"type":47,"value":810},"Amounts",{"type":47,"value":812}," - human-readable decimal numbers (e.g. ",{"type":41,"tag":63,"props":814,"children":816},{"className":815},[],[817],{"type":47,"value":818},"10",{"type":47,"value":584},{"type":41,"tag":63,"props":821,"children":823},{"className":822},[],[824],{"type":47,"value":825},"0.5",{"type":47,"value":827},").\nThe SDK converts to wei using the asset's decimals.",{"type":41,"tag":168,"props":829,"children":830},{},[831,836,838,844,846,851],{"type":41,"tag":72,"props":832,"children":833},{},[834],{"type":47,"value":835},"Slippage",{"type":47,"value":837}," - ",{"type":41,"tag":63,"props":839,"children":841},{"className":840},[],[842],{"type":47,"value":843},"--slippage",{"type":47,"value":845}," accepts a percent (e.g. ",{"type":41,"tag":63,"props":847,"children":849},{"className":848},[],[850],{"type":47,"value":825},{"type":47,"value":852}," for 0.5%);\nthe CLI converts to the SDK's decimal form internally.",{"type":41,"tag":168,"props":854,"children":855},{},[856,861,863,869,871,877,879,885,887,893,895,901],{"type":41,"tag":72,"props":857,"children":858},{},[859],{"type":47,"value":860},"Amount direction",{"type":47,"value":862}," - exactly one of ",{"type":41,"tag":63,"props":864,"children":866},{"className":865},[],[867],{"type":47,"value":868},"--amount-in",{"type":47,"value":870}," (exact-in) or\n",{"type":41,"tag":63,"props":872,"children":874},{"className":873},[],[875],{"type":47,"value":876},"--amount-out",{"type":47,"value":878}," (exact-out) is required for ",{"type":41,"tag":63,"props":880,"children":882},{"className":881},[],[883],{"type":47,"value":884},"swap quote",{"type":47,"value":886},",\n",{"type":41,"tag":63,"props":888,"children":890},{"className":889},[],[891],{"type":47,"value":892},"swap quotes",{"type":47,"value":894},", and ",{"type":41,"tag":63,"props":896,"children":898},{"className":897},[],[899],{"type":47,"value":900},"wallet swap execute",{"type":47,"value":355},{"type":41,"tag":168,"props":903,"children":904},{},[905,910,911,917],{"type":41,"tag":72,"props":906,"children":907},{},[908],{"type":47,"value":909},"Provider selection",{"type":47,"value":837},{"type":41,"tag":63,"props":912,"children":914},{"className":913},[],[915],{"type":47,"value":916},"--provider uniswap|velodrome",{"type":47,"value":918}," forces a\nprovider and skips routing. Omit to let the SDK pick the best\navailable.",{"type":41,"tag":50,"props":920,"children":922},{"id":921},"presentation-hints-for-llmagent-callers",[923],{"type":47,"value":924},"Presentation hints (for LLM\u002Fagent callers)",{"type":41,"tag":57,"props":926,"children":927},{},[928],{"type":47,"value":929},"These are rules for rendering CLI output to humans, not rules for the\nCLI itself.",{"type":41,"tag":164,"props":931,"children":932},{},[933,966,976],{"type":41,"tag":168,"props":934,"children":935},{},[936,941,943,948,950,956,958,964],{"type":41,"tag":72,"props":937,"children":938},{},[939],{"type":47,"value":940},"Chain labels - only when disambiguating.",{"type":47,"value":942}," When showing a list\n(balances, markets, positions, pools), mention the chain only for\nentries that share their name\u002Fsymbol\u002Fmarket with another entry on a\ndifferent chain in the same response. If every row is uniquely\nidentifiable by its name alone, drop the chain label. Count chain\noccurrences ",{"type":41,"tag":72,"props":944,"children":945},{},[946],{"type":47,"value":947},"after",{"type":47,"value":949}," skipping zero balances. Example: two chains\nin the raw payload, but only one has a non-zero balance of ",{"type":41,"tag":63,"props":951,"children":953},{"className":952},[],[954],{"type":47,"value":955},"X",{"type":47,"value":957}," -\nrender as ",{"type":41,"tag":63,"props":959,"children":961},{"className":960},[],[962],{"type":47,"value":963},"X \u003Camount>",{"type":47,"value":965}," with no chain. When the user explicitly scopes\na question to one chain, still omit the label.",{"type":41,"tag":168,"props":967,"children":968},{},[969,974],{"type":41,"tag":72,"props":970,"children":971},{},[972],{"type":47,"value":973},"Zero rows - skip.",{"type":47,"value":975}," Don't render zero balances, empty positions,\nor pools with no meaningful data, unless the user specifically asked\nabout that zero value (\"do I have any X on op-sepolia\").",{"type":41,"tag":168,"props":977,"children":978},{},[979,984,986,992],{"type":41,"tag":72,"props":980,"children":981},{},[982],{"type":47,"value":983},"Raw addresses - omit by default.",{"type":47,"value":985}," Wallet\u002Fpool\u002Fmarket\u002Fcontract\naddresses in a listing add noise. Show them only when the user asks\nfor them explicitly, and even then truncate (",{"type":41,"tag":63,"props":987,"children":989},{"className":988},[],[990],{"type":47,"value":991},"0xabc…def",{"type":47,"value":404},{"type":41,"tag":50,"props":994,"children":996},{"id":995},"output",[997],{"type":47,"value":998},"Output",{"type":41,"tag":57,"props":1000,"children":1001},{},[1002,1004,1009],{"type":47,"value":1003},"With ",{"type":41,"tag":63,"props":1005,"children":1007},{"className":1006},[],[1008],{"type":47,"value":82},{"type":47,"value":1010},":",{"type":41,"tag":164,"props":1012,"children":1013},{},[1014,1027],{"type":41,"tag":168,"props":1015,"children":1016},{},[1017,1019,1025],{"type":47,"value":1018},"Success: bare JSON document on stdout, exit 0. No envelope (matches\n",{"type":41,"tag":63,"props":1020,"children":1022},{"className":1021},[],[1023],{"type":47,"value":1024},"gh",{"type":47,"value":1026}," and AWS CLI conventions).",{"type":41,"tag":168,"props":1028,"children":1029},{},[1030,1032,1038,1040,1046,1048,1054,1056,1062],{"type":47,"value":1031},"Error: JSON ",{"type":41,"tag":63,"props":1033,"children":1035},{"className":1034},[],[1036],{"type":47,"value":1037},"{error, code, retryable, retry_after_ms?, details?}",{"type":47,"value":1039}," on\nstderr, non-zero exit. ",{"type":41,"tag":63,"props":1041,"children":1043},{"className":1042},[],[1044],{"type":47,"value":1045},"retryable: true",{"type":47,"value":1047}," means the caller may retry\n(typically network failures). ",{"type":41,"tag":63,"props":1049,"children":1051},{"className":1050},[],[1052],{"type":47,"value":1053},"retry_after_ms",{"type":47,"value":1055}," is present when a\nspecific back-off is recommended. ",{"type":41,"tag":63,"props":1057,"children":1059},{"className":1058},[],[1060],{"type":47,"value":1061},"details",{"type":47,"value":1063}," is redacted - bundler\nURLs with API keys, signer metadata, and raw viem request bodies are\nscrubbed.",{"type":41,"tag":57,"props":1065,"children":1066},{},[1067,1069,1074],{"type":47,"value":1068},"Without ",{"type":41,"tag":63,"props":1070,"children":1072},{"className":1071},[],[1073],{"type":47,"value":82},{"type":47,"value":1075}," (default):",{"type":41,"tag":164,"props":1077,"children":1078},{},[1079,1084],{"type":41,"tag":168,"props":1080,"children":1081},{},[1082],{"type":47,"value":1083},"Success: plain text on stdout intended for human reading. Not stable\nacross versions.",{"type":41,"tag":168,"props":1085,"children":1086},{},[1087,1089,1095],{"type":47,"value":1088},"Error: ",{"type":41,"tag":63,"props":1090,"children":1092},{"className":1091},[],[1093],{"type":47,"value":1094},"Error (\u003Ccode>): \u003Cmessage>",{"type":47,"value":1096}," on stderr, exit code per the table\nbelow.",{"type":41,"tag":50,"props":1098,"children":1100},{"id":1099},"balance-semantics",[1101],{"type":47,"value":1102},"Balance semantics",{"type":41,"tag":57,"props":1104,"children":1105},{},[1106,1108,1114,1116,1122,1124,1130],{"type":47,"value":1107},"Within a single ",{"type":41,"tag":63,"props":1109,"children":1111},{"className":1110},[],[1112],{"type":47,"value":1113},"actions wallet balance",{"type":47,"value":1115}," call, the SDK fans out via\n",{"type":41,"tag":63,"props":1117,"children":1119},{"className":1118},[],[1120],{"type":47,"value":1121},"Promise.all",{"type":47,"value":1123}," over (asset x chain), so any single failing RPC rejects\nthe whole call with a ",{"type":41,"tag":63,"props":1125,"children":1127},{"className":1126},[],[1128],{"type":47,"value":1129},"network",{"type":47,"value":1131}," error. Retries may succeed on a\ndifferent call - do not assume per-chain isolation.",{"type":41,"tag":57,"props":1133,"children":1134},{},[1135,1137,1142,1144,1149],{"type":47,"value":1136},"To shrink the failure surface, scope the call with ",{"type":41,"tag":63,"props":1138,"children":1140},{"className":1139},[],[1141],{"type":47,"value":638},{"type":47,"value":1143}," or\n",{"type":41,"tag":63,"props":1145,"children":1147},{"className":1146},[],[1148],{"type":47,"value":646},{"type":47,"value":1150}," (both accept a comma-separated list). The SDK only\nqueries the chains you pass.",{"type":41,"tag":50,"props":1152,"children":1154},{"id":1153},"lend-semantics",[1155],{"type":47,"value":1156},"Lend semantics",{"type":41,"tag":57,"props":1158,"children":1159},{},[1160,1166,1167,1173],{"type":41,"tag":63,"props":1161,"children":1163},{"className":1162},[],[1164],{"type":47,"value":1165},"wallet lend open",{"type":47,"value":697},{"type":41,"tag":63,"props":1168,"children":1170},{"className":1169},[],[1171],{"type":47,"value":1172},"wallet lend close",{"type":47,"value":1174}," emit a structured envelope\non stdout:",{"type":41,"tag":93,"props":1176,"children":1180},{"className":1177,"code":1178,"language":1179,"meta":98,"style":98},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"action\": \"open\" | \"close\",\n  \"market\": { \"name\": \"...\", \"address\": \"0x...\", \"chainId\": ..., \"provider\": \"...\" },\n  \"asset\":  { \"symbol\": \"...\" },\n  \"amount\": \u003Cnumber>,\n  \"transactions\": [ { \"transactionHash\": \"0x...\", \"status\": \"success\", ... } ]\n}\n","json",[1181],{"type":41,"tag":63,"props":1182,"children":1183},{"__ignoreMap":98},[1184,1193,1253,1407,1466,1496,1608],{"type":41,"tag":104,"props":1185,"children":1186},{"class":106,"line":107},[1187],{"type":41,"tag":104,"props":1188,"children":1190},{"style":1189},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[1191],{"type":47,"value":1192},"{\n",{"type":41,"tag":104,"props":1194,"children":1195},{"class":106,"line":127},[1196,1201,1207,1212,1216,1221,1226,1230,1236,1240,1245,1249],{"type":41,"tag":104,"props":1197,"children":1198},{"style":1189},[1199],{"type":47,"value":1200},"  \"",{"type":41,"tag":104,"props":1202,"children":1204},{"style":1203},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1205],{"type":47,"value":1206},"action",{"type":41,"tag":104,"props":1208,"children":1209},{"style":1189},[1210],{"type":47,"value":1211},"\"",{"type":41,"tag":104,"props":1213,"children":1214},{"style":1189},[1215],{"type":47,"value":1010},{"type":41,"tag":104,"props":1217,"children":1218},{"style":1189},[1219],{"type":47,"value":1220}," \"",{"type":41,"tag":104,"props":1222,"children":1223},{"style":116},[1224],{"type":47,"value":1225},"open",{"type":41,"tag":104,"props":1227,"children":1228},{"style":1189},[1229],{"type":47,"value":1211},{"type":41,"tag":104,"props":1231,"children":1233},{"style":1232},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[1234],{"type":47,"value":1235}," | ",{"type":41,"tag":104,"props":1237,"children":1238},{"style":1189},[1239],{"type":47,"value":1211},{"type":41,"tag":104,"props":1241,"children":1242},{"style":116},[1243],{"type":47,"value":1244},"close",{"type":41,"tag":104,"props":1246,"children":1247},{"style":1189},[1248],{"type":47,"value":1211},{"type":41,"tag":104,"props":1250,"children":1251},{"style":1189},[1252],{"type":47,"value":886},{"type":41,"tag":104,"props":1254,"children":1256},{"class":106,"line":1255},3,[1257,1261,1266,1270,1274,1279,1283,1287,1291,1295,1299,1304,1308,1313,1317,1322,1326,1330,1334,1339,1343,1347,1351,1356,1360,1364,1369,1373,1377,1382,1386,1390,1394,1398,1402],{"type":41,"tag":104,"props":1258,"children":1259},{"style":1189},[1260],{"type":47,"value":1200},{"type":41,"tag":104,"props":1262,"children":1263},{"style":1203},[1264],{"type":47,"value":1265},"market",{"type":41,"tag":104,"props":1267,"children":1268},{"style":1189},[1269],{"type":47,"value":1211},{"type":41,"tag":104,"props":1271,"children":1272},{"style":1189},[1273],{"type":47,"value":1010},{"type":41,"tag":104,"props":1275,"children":1276},{"style":1189},[1277],{"type":47,"value":1278}," {",{"type":41,"tag":104,"props":1280,"children":1281},{"style":1189},[1282],{"type":47,"value":1220},{"type":41,"tag":104,"props":1284,"children":1285},{"style":111},[1286],{"type":47,"value":672},{"type":41,"tag":104,"props":1288,"children":1289},{"style":1189},[1290],{"type":47,"value":1211},{"type":41,"tag":104,"props":1292,"children":1293},{"style":1189},[1294],{"type":47,"value":1010},{"type":41,"tag":104,"props":1296,"children":1297},{"style":1189},[1298],{"type":47,"value":1220},{"type":41,"tag":104,"props":1300,"children":1301},{"style":116},[1302],{"type":47,"value":1303},"...",{"type":41,"tag":104,"props":1305,"children":1306},{"style":1189},[1307],{"type":47,"value":1211},{"type":41,"tag":104,"props":1309,"children":1310},{"style":1189},[1311],{"type":47,"value":1312},",",{"type":41,"tag":104,"props":1314,"children":1315},{"style":1189},[1316],{"type":47,"value":1220},{"type":41,"tag":104,"props":1318,"children":1319},{"style":111},[1320],{"type":47,"value":1321},"address",{"type":41,"tag":104,"props":1323,"children":1324},{"style":1189},[1325],{"type":47,"value":1211},{"type":41,"tag":104,"props":1327,"children":1328},{"style":1189},[1329],{"type":47,"value":1010},{"type":41,"tag":104,"props":1331,"children":1332},{"style":1189},[1333],{"type":47,"value":1220},{"type":41,"tag":104,"props":1335,"children":1336},{"style":116},[1337],{"type":47,"value":1338},"0x...",{"type":41,"tag":104,"props":1340,"children":1341},{"style":1189},[1342],{"type":47,"value":1211},{"type":41,"tag":104,"props":1344,"children":1345},{"style":1189},[1346],{"type":47,"value":1312},{"type":41,"tag":104,"props":1348,"children":1349},{"style":1189},[1350],{"type":47,"value":1220},{"type":41,"tag":104,"props":1352,"children":1353},{"style":111},[1354],{"type":47,"value":1355},"chainId",{"type":41,"tag":104,"props":1357,"children":1358},{"style":1189},[1359],{"type":47,"value":1211},{"type":41,"tag":104,"props":1361,"children":1362},{"style":1189},[1363],{"type":47,"value":1010},{"type":41,"tag":104,"props":1365,"children":1366},{"style":1232},[1367],{"type":47,"value":1368}," ...",{"type":41,"tag":104,"props":1370,"children":1371},{"style":1189},[1372],{"type":47,"value":1312},{"type":41,"tag":104,"props":1374,"children":1375},{"style":1189},[1376],{"type":47,"value":1220},{"type":41,"tag":104,"props":1378,"children":1379},{"style":111},[1380],{"type":47,"value":1381},"provider",{"type":41,"tag":104,"props":1383,"children":1384},{"style":1189},[1385],{"type":47,"value":1211},{"type":41,"tag":104,"props":1387,"children":1388},{"style":1189},[1389],{"type":47,"value":1010},{"type":41,"tag":104,"props":1391,"children":1392},{"style":1189},[1393],{"type":47,"value":1220},{"type":41,"tag":104,"props":1395,"children":1396},{"style":116},[1397],{"type":47,"value":1303},{"type":41,"tag":104,"props":1399,"children":1400},{"style":1189},[1401],{"type":47,"value":1211},{"type":41,"tag":104,"props":1403,"children":1404},{"style":1189},[1405],{"type":47,"value":1406}," },\n",{"type":41,"tag":104,"props":1408,"children":1410},{"class":106,"line":1409},4,[1411,1415,1420,1424,1428,1433,1437,1442,1446,1450,1454,1458,1462],{"type":41,"tag":104,"props":1412,"children":1413},{"style":1189},[1414],{"type":47,"value":1200},{"type":41,"tag":104,"props":1416,"children":1417},{"style":1203},[1418],{"type":47,"value":1419},"asset",{"type":41,"tag":104,"props":1421,"children":1422},{"style":1189},[1423],{"type":47,"value":1211},{"type":41,"tag":104,"props":1425,"children":1426},{"style":1189},[1427],{"type":47,"value":1010},{"type":41,"tag":104,"props":1429,"children":1430},{"style":1189},[1431],{"type":47,"value":1432},"  {",{"type":41,"tag":104,"props":1434,"children":1435},{"style":1189},[1436],{"type":47,"value":1220},{"type":41,"tag":104,"props":1438,"children":1439},{"style":111},[1440],{"type":47,"value":1441},"symbol",{"type":41,"tag":104,"props":1443,"children":1444},{"style":1189},[1445],{"type":47,"value":1211},{"type":41,"tag":104,"props":1447,"children":1448},{"style":1189},[1449],{"type":47,"value":1010},{"type":41,"tag":104,"props":1451,"children":1452},{"style":1189},[1453],{"type":47,"value":1220},{"type":41,"tag":104,"props":1455,"children":1456},{"style":116},[1457],{"type":47,"value":1303},{"type":41,"tag":104,"props":1459,"children":1460},{"style":1189},[1461],{"type":47,"value":1211},{"type":41,"tag":104,"props":1463,"children":1464},{"style":1189},[1465],{"type":47,"value":1406},{"type":41,"tag":104,"props":1467,"children":1469},{"class":106,"line":1468},5,[1470,1474,1479,1483,1487,1492],{"type":41,"tag":104,"props":1471,"children":1472},{"style":1189},[1473],{"type":47,"value":1200},{"type":41,"tag":104,"props":1475,"children":1476},{"style":1203},[1477],{"type":47,"value":1478},"amount",{"type":41,"tag":104,"props":1480,"children":1481},{"style":1189},[1482],{"type":47,"value":1211},{"type":41,"tag":104,"props":1484,"children":1485},{"style":1189},[1486],{"type":47,"value":1010},{"type":41,"tag":104,"props":1488,"children":1489},{"style":1232},[1490],{"type":47,"value":1491}," \u003Cnumber>",{"type":41,"tag":104,"props":1493,"children":1494},{"style":1189},[1495],{"type":47,"value":886},{"type":41,"tag":104,"props":1497,"children":1499},{"class":106,"line":1498},6,[1500,1504,1509,1513,1517,1522,1526,1530,1535,1539,1543,1547,1551,1555,1559,1563,1568,1572,1576,1580,1585,1589,1593,1598,1603],{"type":41,"tag":104,"props":1501,"children":1502},{"style":1189},[1503],{"type":47,"value":1200},{"type":41,"tag":104,"props":1505,"children":1506},{"style":1203},[1507],{"type":47,"value":1508},"transactions",{"type":41,"tag":104,"props":1510,"children":1511},{"style":1189},[1512],{"type":47,"value":1211},{"type":41,"tag":104,"props":1514,"children":1515},{"style":1189},[1516],{"type":47,"value":1010},{"type":41,"tag":104,"props":1518,"children":1519},{"style":1189},[1520],{"type":47,"value":1521}," [",{"type":41,"tag":104,"props":1523,"children":1524},{"style":1189},[1525],{"type":47,"value":1278},{"type":41,"tag":104,"props":1527,"children":1528},{"style":1189},[1529],{"type":47,"value":1220},{"type":41,"tag":104,"props":1531,"children":1532},{"style":111},[1533],{"type":47,"value":1534},"transactionHash",{"type":41,"tag":104,"props":1536,"children":1537},{"style":1189},[1538],{"type":47,"value":1211},{"type":41,"tag":104,"props":1540,"children":1541},{"style":1189},[1542],{"type":47,"value":1010},{"type":41,"tag":104,"props":1544,"children":1545},{"style":1189},[1546],{"type":47,"value":1220},{"type":41,"tag":104,"props":1548,"children":1549},{"style":116},[1550],{"type":47,"value":1338},{"type":41,"tag":104,"props":1552,"children":1553},{"style":1189},[1554],{"type":47,"value":1211},{"type":41,"tag":104,"props":1556,"children":1557},{"style":1189},[1558],{"type":47,"value":1312},{"type":41,"tag":104,"props":1560,"children":1561},{"style":1189},[1562],{"type":47,"value":1220},{"type":41,"tag":104,"props":1564,"children":1565},{"style":111},[1566],{"type":47,"value":1567},"status",{"type":41,"tag":104,"props":1569,"children":1570},{"style":1189},[1571],{"type":47,"value":1211},{"type":41,"tag":104,"props":1573,"children":1574},{"style":1189},[1575],{"type":47,"value":1010},{"type":41,"tag":104,"props":1577,"children":1578},{"style":1189},[1579],{"type":47,"value":1220},{"type":41,"tag":104,"props":1581,"children":1582},{"style":116},[1583],{"type":47,"value":1584},"success",{"type":41,"tag":104,"props":1586,"children":1587},{"style":1189},[1588],{"type":47,"value":1211},{"type":41,"tag":104,"props":1590,"children":1591},{"style":1189},[1592],{"type":47,"value":1312},{"type":41,"tag":104,"props":1594,"children":1595},{"style":1232},[1596],{"type":47,"value":1597}," ... ",{"type":41,"tag":104,"props":1599,"children":1600},{"style":1189},[1601],{"type":47,"value":1602},"}",{"type":41,"tag":104,"props":1604,"children":1605},{"style":1189},[1606],{"type":47,"value":1607}," ]\n",{"type":41,"tag":104,"props":1609,"children":1611},{"class":106,"line":1610},7,[1612],{"type":41,"tag":104,"props":1613,"children":1614},{"style":1189},[1615],{"type":47,"value":1616},"}\n",{"type":41,"tag":57,"props":1618,"children":1619},{},[1620,1625,1627,1632,1634,1639,1641,1647,1648,1654],{"type":41,"tag":63,"props":1621,"children":1623},{"className":1622},[],[1624],{"type":47,"value":1508},{"type":47,"value":1626}," is always an array. On EOA the SDK sends approval +\nposition as two sequential transactions when an approval is required,\nso ",{"type":41,"tag":63,"props":1628,"children":1630},{"className":1629},[],[1631],{"type":47,"value":1225},{"type":47,"value":1633}," returns 1-2 receipts and ",{"type":41,"tag":63,"props":1635,"children":1637},{"className":1636},[],[1638],{"type":47,"value":1244},{"type":47,"value":1640}," returns 1. Bigint receipt\nfields (",{"type":41,"tag":63,"props":1642,"children":1644},{"className":1643},[],[1645],{"type":47,"value":1646},"blockNumber",{"type":47,"value":584},{"type":41,"tag":63,"props":1649,"children":1651},{"className":1650},[],[1652],{"type":47,"value":1653},"gasUsed",{"type":47,"value":1655},") are stringified.",{"type":41,"tag":57,"props":1657,"children":1658},{},[1659,1661,1667,1669,1675],{"type":47,"value":1660},"A receipt with ",{"type":41,"tag":63,"props":1662,"children":1664},{"className":1663},[],[1665],{"type":47,"value":1666},"status: \"reverted\"",{"type":47,"value":1668}," is normalised to a ",{"type":41,"tag":63,"props":1670,"children":1672},{"className":1671},[],[1673],{"type":47,"value":1674},"code: \"onchain\"",{"type":47,"value":1676},"\nerror envelope on stderr (exit 5), so callers do not need to inspect\nreceipt status to detect failure.",{"type":41,"tag":57,"props":1678,"children":1679},{},[1680,1686,1688,1694,1696,1702],{"type":41,"tag":63,"props":1681,"children":1683},{"className":1682},[],[1684],{"type":47,"value":1685},"wallet lend position",{"type":47,"value":1687}," returns the SDK ",{"type":41,"tag":63,"props":1689,"children":1691},{"className":1690},[],[1692],{"type":47,"value":1693},"LendMarketPosition",{"type":47,"value":1695}," shape\nverbatim: ",{"type":41,"tag":63,"props":1697,"children":1699},{"className":1698},[],[1700],{"type":47,"value":1701},"{ balance, balanceFormatted, shares, sharesFormatted, marketId }",{"type":47,"value":1703},"\nwith bigint fields stringified.",{"type":41,"tag":57,"props":1705,"children":1706},{},[1707,1713,1714,1720,1722,1728,1730,1736,1738,1743],{"type":41,"tag":63,"props":1708,"children":1710},{"className":1709},[],[1711],{"type":47,"value":1712},"lend markets",{"type":47,"value":697},{"type":41,"tag":63,"props":1715,"children":1717},{"className":1716},[],[1718],{"type":47,"value":1719},"lend market",{"type":47,"value":1721}," return the SDK ",{"type":41,"tag":63,"props":1723,"children":1725},{"className":1724},[],[1726],{"type":47,"value":1727},"LendMarket",{"type":47,"value":1729}," shape(s)\nverbatim: ",{"type":41,"tag":63,"props":1731,"children":1733},{"className":1732},[],[1734],{"type":47,"value":1735},"{ marketId, name, asset, supply, apy, metadata }",{"type":47,"value":1737},". These do\nnot require ",{"type":41,"tag":63,"props":1739,"children":1741},{"className":1740},[],[1742],{"type":47,"value":250},{"type":47,"value":355},{"type":41,"tag":57,"props":1745,"children":1746},{},[1747],{"type":47,"value":1748},"NL -> command examples:",{"type":41,"tag":164,"props":1750,"children":1751},{},[1752,1763,1774,1785,1796],{"type":41,"tag":168,"props":1753,"children":1754},{},[1755,1757],{"type":47,"value":1756},"\"what markets can I lend in\" -> ",{"type":41,"tag":63,"props":1758,"children":1760},{"className":1759},[],[1761],{"type":47,"value":1762},"actions --json lend markets",{"type":41,"tag":168,"props":1764,"children":1765},{},[1766,1768],{"type":47,"value":1767},"\"supply 10 USDC to Gauntlet\" -> ",{"type":41,"tag":63,"props":1769,"children":1771},{"className":1770},[],[1772],{"type":47,"value":1773},"actions --json wallet lend open --market gauntlet-usdc --amount 10",{"type":41,"tag":168,"props":1775,"children":1776},{},[1777,1779],{"type":47,"value":1778},"\"deposit 0.5 ETH into Aave on op-sepolia\" -> ",{"type":41,"tag":63,"props":1780,"children":1782},{"className":1781},[],[1783],{"type":47,"value":1784},"actions --json wallet lend open --market aave-eth --amount 0.5",{"type":41,"tag":168,"props":1786,"children":1787},{},[1788,1790],{"type":47,"value":1789},"\"withdraw 5 USDC from Gauntlet\" -> ",{"type":41,"tag":63,"props":1791,"children":1793},{"className":1792},[],[1794],{"type":47,"value":1795},"actions --json wallet lend close --market gauntlet-usdc --amount 5",{"type":41,"tag":168,"props":1797,"children":1798},{},[1799,1801],{"type":47,"value":1800},"\"how much do I have in Gauntlet\" -> ",{"type":41,"tag":63,"props":1802,"children":1804},{"className":1803},[],[1805],{"type":47,"value":1806},"actions --json wallet lend position --market gauntlet-usdc",{"type":41,"tag":50,"props":1808,"children":1810},{"id":1809},"borrow-semantics",[1811],{"type":47,"value":1812},"Borrow semantics",{"type":41,"tag":57,"props":1814,"children":1815},{},[1816,1818,1823,1824,1829,1830,1836,1837,1843,1844,1850],{"type":47,"value":1817},"The wallet-scoped write verbs (",{"type":41,"tag":63,"props":1819,"children":1821},{"className":1820},[],[1822],{"type":47,"value":1225},{"type":47,"value":584},{"type":41,"tag":63,"props":1825,"children":1827},{"className":1826},[],[1828],{"type":47,"value":1244},{"type":47,"value":584},{"type":41,"tag":63,"props":1831,"children":1833},{"className":1832},[],[1834],{"type":47,"value":1835},"deposit-collateral",{"type":47,"value":886},{"type":41,"tag":63,"props":1838,"children":1840},{"className":1839},[],[1841],{"type":47,"value":1842},"withdraw-collateral",{"type":47,"value":584},{"type":41,"tag":63,"props":1845,"children":1847},{"className":1846},[],[1848],{"type":47,"value":1849},"repay",{"type":47,"value":1851},") emit a structured envelope on stdout:",{"type":41,"tag":93,"props":1853,"children":1855},{"className":1177,"code":1854,"language":1179,"meta":98,"style":98},"{\n  \"action\": \"open\" | \"close\" | \"depositCollateral\" | \"withdrawCollateral\" | \"repay\",\n  \"market\": {\n    \"name\": \"...\",\n    \"marketId\": { \"kind\": \"morpho-blue\", \"marketId\": \"0x...\", \"chainId\": ... },\n    \"chainId\": ...,\n    \"provider\": \"morpho\"\n  },\n  \"borrowAmount\":     \u003Cnumber | \"max\">,\n  \"collateralAmount\": \u003Cnumber | \"max\">,\n  \"transactions\": [ { \"transactionHash\": \"0x...\", \"status\": \"success\", ... } ],\n  \"ltv\": \u003Cnumber | null>,\n  \"healthFactor\": \u003Cnumber | null>,\n  \"liquidationPriceFormatted\": \"\u003Cstring>\"\n}\n",[1856],{"type":41,"tag":63,"props":1857,"children":1858},{"__ignoreMap":98},[1859,1866,1967,1991,2027,2143,2170,2203,2212,2260,2306,2411,2449,2486,2520],{"type":41,"tag":104,"props":1860,"children":1861},{"class":106,"line":107},[1862],{"type":41,"tag":104,"props":1863,"children":1864},{"style":1189},[1865],{"type":47,"value":1192},{"type":41,"tag":104,"props":1867,"children":1868},{"class":106,"line":127},[1869,1873,1877,1881,1885,1889,1893,1897,1901,1905,1909,1913,1917,1921,1926,1930,1934,1938,1943,1947,1951,1955,1959,1963],{"type":41,"tag":104,"props":1870,"children":1871},{"style":1189},[1872],{"type":47,"value":1200},{"type":41,"tag":104,"props":1874,"children":1875},{"style":1203},[1876],{"type":47,"value":1206},{"type":41,"tag":104,"props":1878,"children":1879},{"style":1189},[1880],{"type":47,"value":1211},{"type":41,"tag":104,"props":1882,"children":1883},{"style":1189},[1884],{"type":47,"value":1010},{"type":41,"tag":104,"props":1886,"children":1887},{"style":1189},[1888],{"type":47,"value":1220},{"type":41,"tag":104,"props":1890,"children":1891},{"style":116},[1892],{"type":47,"value":1225},{"type":41,"tag":104,"props":1894,"children":1895},{"style":1189},[1896],{"type":47,"value":1211},{"type":41,"tag":104,"props":1898,"children":1899},{"style":1232},[1900],{"type":47,"value":1235},{"type":41,"tag":104,"props":1902,"children":1903},{"style":1189},[1904],{"type":47,"value":1211},{"type":41,"tag":104,"props":1906,"children":1907},{"style":116},[1908],{"type":47,"value":1244},{"type":41,"tag":104,"props":1910,"children":1911},{"style":1189},[1912],{"type":47,"value":1211},{"type":41,"tag":104,"props":1914,"children":1915},{"style":1232},[1916],{"type":47,"value":1235},{"type":41,"tag":104,"props":1918,"children":1919},{"style":1189},[1920],{"type":47,"value":1211},{"type":41,"tag":104,"props":1922,"children":1923},{"style":116},[1924],{"type":47,"value":1925},"depositCollateral",{"type":41,"tag":104,"props":1927,"children":1928},{"style":1189},[1929],{"type":47,"value":1211},{"type":41,"tag":104,"props":1931,"children":1932},{"style":1232},[1933],{"type":47,"value":1235},{"type":41,"tag":104,"props":1935,"children":1936},{"style":1189},[1937],{"type":47,"value":1211},{"type":41,"tag":104,"props":1939,"children":1940},{"style":116},[1941],{"type":47,"value":1942},"withdrawCollateral",{"type":41,"tag":104,"props":1944,"children":1945},{"style":1189},[1946],{"type":47,"value":1211},{"type":41,"tag":104,"props":1948,"children":1949},{"style":1232},[1950],{"type":47,"value":1235},{"type":41,"tag":104,"props":1952,"children":1953},{"style":1189},[1954],{"type":47,"value":1211},{"type":41,"tag":104,"props":1956,"children":1957},{"style":116},[1958],{"type":47,"value":1849},{"type":41,"tag":104,"props":1960,"children":1961},{"style":1189},[1962],{"type":47,"value":1211},{"type":41,"tag":104,"props":1964,"children":1965},{"style":1189},[1966],{"type":47,"value":886},{"type":41,"tag":104,"props":1968,"children":1969},{"class":106,"line":1255},[1970,1974,1978,1982,1986],{"type":41,"tag":104,"props":1971,"children":1972},{"style":1189},[1973],{"type":47,"value":1200},{"type":41,"tag":104,"props":1975,"children":1976},{"style":1203},[1977],{"type":47,"value":1265},{"type":41,"tag":104,"props":1979,"children":1980},{"style":1189},[1981],{"type":47,"value":1211},{"type":41,"tag":104,"props":1983,"children":1984},{"style":1189},[1985],{"type":47,"value":1010},{"type":41,"tag":104,"props":1987,"children":1988},{"style":1189},[1989],{"type":47,"value":1990}," {\n",{"type":41,"tag":104,"props":1992,"children":1993},{"class":106,"line":1409},[1994,1999,2003,2007,2011,2015,2019,2023],{"type":41,"tag":104,"props":1995,"children":1996},{"style":1189},[1997],{"type":47,"value":1998},"    \"",{"type":41,"tag":104,"props":2000,"children":2001},{"style":111},[2002],{"type":47,"value":672},{"type":41,"tag":104,"props":2004,"children":2005},{"style":1189},[2006],{"type":47,"value":1211},{"type":41,"tag":104,"props":2008,"children":2009},{"style":1189},[2010],{"type":47,"value":1010},{"type":41,"tag":104,"props":2012,"children":2013},{"style":1189},[2014],{"type":47,"value":1220},{"type":41,"tag":104,"props":2016,"children":2017},{"style":116},[2018],{"type":47,"value":1303},{"type":41,"tag":104,"props":2020,"children":2021},{"style":1189},[2022],{"type":47,"value":1211},{"type":41,"tag":104,"props":2024,"children":2025},{"style":1189},[2026],{"type":47,"value":886},{"type":41,"tag":104,"props":2028,"children":2029},{"class":106,"line":1468},[2030,2034,2039,2043,2047,2051,2055,2061,2065,2069,2073,2078,2082,2086,2090,2094,2098,2102,2106,2110,2114,2118,2122,2126,2130,2134,2138],{"type":41,"tag":104,"props":2031,"children":2032},{"style":1189},[2033],{"type":47,"value":1998},{"type":41,"tag":104,"props":2035,"children":2036},{"style":111},[2037],{"type":47,"value":2038},"marketId",{"type":41,"tag":104,"props":2040,"children":2041},{"style":1189},[2042],{"type":47,"value":1211},{"type":41,"tag":104,"props":2044,"children":2045},{"style":1189},[2046],{"type":47,"value":1010},{"type":41,"tag":104,"props":2048,"children":2049},{"style":1189},[2050],{"type":47,"value":1278},{"type":41,"tag":104,"props":2052,"children":2053},{"style":1189},[2054],{"type":47,"value":1220},{"type":41,"tag":104,"props":2056,"children":2058},{"style":2057},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[2059],{"type":47,"value":2060},"kind",{"type":41,"tag":104,"props":2062,"children":2063},{"style":1189},[2064],{"type":47,"value":1211},{"type":41,"tag":104,"props":2066,"children":2067},{"style":1189},[2068],{"type":47,"value":1010},{"type":41,"tag":104,"props":2070,"children":2071},{"style":1189},[2072],{"type":47,"value":1220},{"type":41,"tag":104,"props":2074,"children":2075},{"style":116},[2076],{"type":47,"value":2077},"morpho-blue",{"type":41,"tag":104,"props":2079,"children":2080},{"style":1189},[2081],{"type":47,"value":1211},{"type":41,"tag":104,"props":2083,"children":2084},{"style":1189},[2085],{"type":47,"value":1312},{"type":41,"tag":104,"props":2087,"children":2088},{"style":1189},[2089],{"type":47,"value":1220},{"type":41,"tag":104,"props":2091,"children":2092},{"style":2057},[2093],{"type":47,"value":2038},{"type":41,"tag":104,"props":2095,"children":2096},{"style":1189},[2097],{"type":47,"value":1211},{"type":41,"tag":104,"props":2099,"children":2100},{"style":1189},[2101],{"type":47,"value":1010},{"type":41,"tag":104,"props":2103,"children":2104},{"style":1189},[2105],{"type":47,"value":1220},{"type":41,"tag":104,"props":2107,"children":2108},{"style":116},[2109],{"type":47,"value":1338},{"type":41,"tag":104,"props":2111,"children":2112},{"style":1189},[2113],{"type":47,"value":1211},{"type":41,"tag":104,"props":2115,"children":2116},{"style":1189},[2117],{"type":47,"value":1312},{"type":41,"tag":104,"props":2119,"children":2120},{"style":1189},[2121],{"type":47,"value":1220},{"type":41,"tag":104,"props":2123,"children":2124},{"style":2057},[2125],{"type":47,"value":1355},{"type":41,"tag":104,"props":2127,"children":2128},{"style":1189},[2129],{"type":47,"value":1211},{"type":41,"tag":104,"props":2131,"children":2132},{"style":1189},[2133],{"type":47,"value":1010},{"type":41,"tag":104,"props":2135,"children":2136},{"style":1232},[2137],{"type":47,"value":1597},{"type":41,"tag":104,"props":2139,"children":2140},{"style":1189},[2141],{"type":47,"value":2142},"},\n",{"type":41,"tag":104,"props":2144,"children":2145},{"class":106,"line":1498},[2146,2150,2154,2158,2162,2166],{"type":41,"tag":104,"props":2147,"children":2148},{"style":1189},[2149],{"type":47,"value":1998},{"type":41,"tag":104,"props":2151,"children":2152},{"style":111},[2153],{"type":47,"value":1355},{"type":41,"tag":104,"props":2155,"children":2156},{"style":1189},[2157],{"type":47,"value":1211},{"type":41,"tag":104,"props":2159,"children":2160},{"style":1189},[2161],{"type":47,"value":1010},{"type":41,"tag":104,"props":2163,"children":2164},{"style":1232},[2165],{"type":47,"value":1368},{"type":41,"tag":104,"props":2167,"children":2168},{"style":1189},[2169],{"type":47,"value":886},{"type":41,"tag":104,"props":2171,"children":2172},{"class":106,"line":1610},[2173,2177,2181,2185,2189,2193,2198],{"type":41,"tag":104,"props":2174,"children":2175},{"style":1189},[2176],{"type":47,"value":1998},{"type":41,"tag":104,"props":2178,"children":2179},{"style":111},[2180],{"type":47,"value":1381},{"type":41,"tag":104,"props":2182,"children":2183},{"style":1189},[2184],{"type":47,"value":1211},{"type":41,"tag":104,"props":2186,"children":2187},{"style":1189},[2188],{"type":47,"value":1010},{"type":41,"tag":104,"props":2190,"children":2191},{"style":1189},[2192],{"type":47,"value":1220},{"type":41,"tag":104,"props":2194,"children":2195},{"style":116},[2196],{"type":47,"value":2197},"morpho",{"type":41,"tag":104,"props":2199,"children":2200},{"style":1189},[2201],{"type":47,"value":2202},"\"\n",{"type":41,"tag":104,"props":2204,"children":2206},{"class":106,"line":2205},8,[2207],{"type":41,"tag":104,"props":2208,"children":2209},{"style":1189},[2210],{"type":47,"value":2211},"  },\n",{"type":41,"tag":104,"props":2213,"children":2215},{"class":106,"line":2214},9,[2216,2220,2225,2229,2233,2238,2242,2247,2251,2256],{"type":41,"tag":104,"props":2217,"children":2218},{"style":1189},[2219],{"type":47,"value":1200},{"type":41,"tag":104,"props":2221,"children":2222},{"style":1203},[2223],{"type":47,"value":2224},"borrowAmount",{"type":41,"tag":104,"props":2226,"children":2227},{"style":1189},[2228],{"type":47,"value":1211},{"type":41,"tag":104,"props":2230,"children":2231},{"style":1189},[2232],{"type":47,"value":1010},{"type":41,"tag":104,"props":2234,"children":2235},{"style":1232},[2236],{"type":47,"value":2237},"     \u003Cnumber | ",{"type":41,"tag":104,"props":2239,"children":2240},{"style":1189},[2241],{"type":47,"value":1211},{"type":41,"tag":104,"props":2243,"children":2244},{"style":116},[2245],{"type":47,"value":2246},"max",{"type":41,"tag":104,"props":2248,"children":2249},{"style":1189},[2250],{"type":47,"value":1211},{"type":41,"tag":104,"props":2252,"children":2253},{"style":1232},[2254],{"type":47,"value":2255},">",{"type":41,"tag":104,"props":2257,"children":2258},{"style":1189},[2259],{"type":47,"value":886},{"type":41,"tag":104,"props":2261,"children":2263},{"class":106,"line":2262},10,[2264,2268,2273,2277,2281,2286,2290,2294,2298,2302],{"type":41,"tag":104,"props":2265,"children":2266},{"style":1189},[2267],{"type":47,"value":1200},{"type":41,"tag":104,"props":2269,"children":2270},{"style":1203},[2271],{"type":47,"value":2272},"collateralAmount",{"type":41,"tag":104,"props":2274,"children":2275},{"style":1189},[2276],{"type":47,"value":1211},{"type":41,"tag":104,"props":2278,"children":2279},{"style":1189},[2280],{"type":47,"value":1010},{"type":41,"tag":104,"props":2282,"children":2283},{"style":1232},[2284],{"type":47,"value":2285}," \u003Cnumber | ",{"type":41,"tag":104,"props":2287,"children":2288},{"style":1189},[2289],{"type":47,"value":1211},{"type":41,"tag":104,"props":2291,"children":2292},{"style":116},[2293],{"type":47,"value":2246},{"type":41,"tag":104,"props":2295,"children":2296},{"style":1189},[2297],{"type":47,"value":1211},{"type":41,"tag":104,"props":2299,"children":2300},{"style":1232},[2301],{"type":47,"value":2255},{"type":41,"tag":104,"props":2303,"children":2304},{"style":1189},[2305],{"type":47,"value":886},{"type":41,"tag":104,"props":2307,"children":2309},{"class":106,"line":2308},11,[2310,2314,2318,2322,2326,2330,2334,2338,2342,2346,2350,2354,2358,2362,2366,2370,2374,2378,2382,2386,2390,2394,2398,2402,2406],{"type":41,"tag":104,"props":2311,"children":2312},{"style":1189},[2313],{"type":47,"value":1200},{"type":41,"tag":104,"props":2315,"children":2316},{"style":1203},[2317],{"type":47,"value":1508},{"type":41,"tag":104,"props":2319,"children":2320},{"style":1189},[2321],{"type":47,"value":1211},{"type":41,"tag":104,"props":2323,"children":2324},{"style":1189},[2325],{"type":47,"value":1010},{"type":41,"tag":104,"props":2327,"children":2328},{"style":1189},[2329],{"type":47,"value":1521},{"type":41,"tag":104,"props":2331,"children":2332},{"style":1189},[2333],{"type":47,"value":1278},{"type":41,"tag":104,"props":2335,"children":2336},{"style":1189},[2337],{"type":47,"value":1220},{"type":41,"tag":104,"props":2339,"children":2340},{"style":111},[2341],{"type":47,"value":1534},{"type":41,"tag":104,"props":2343,"children":2344},{"style":1189},[2345],{"type":47,"value":1211},{"type":41,"tag":104,"props":2347,"children":2348},{"style":1189},[2349],{"type":47,"value":1010},{"type":41,"tag":104,"props":2351,"children":2352},{"style":1189},[2353],{"type":47,"value":1220},{"type":41,"tag":104,"props":2355,"children":2356},{"style":116},[2357],{"type":47,"value":1338},{"type":41,"tag":104,"props":2359,"children":2360},{"style":1189},[2361],{"type":47,"value":1211},{"type":41,"tag":104,"props":2363,"children":2364},{"style":1189},[2365],{"type":47,"value":1312},{"type":41,"tag":104,"props":2367,"children":2368},{"style":1189},[2369],{"type":47,"value":1220},{"type":41,"tag":104,"props":2371,"children":2372},{"style":111},[2373],{"type":47,"value":1567},{"type":41,"tag":104,"props":2375,"children":2376},{"style":1189},[2377],{"type":47,"value":1211},{"type":41,"tag":104,"props":2379,"children":2380},{"style":1189},[2381],{"type":47,"value":1010},{"type":41,"tag":104,"props":2383,"children":2384},{"style":1189},[2385],{"type":47,"value":1220},{"type":41,"tag":104,"props":2387,"children":2388},{"style":116},[2389],{"type":47,"value":1584},{"type":41,"tag":104,"props":2391,"children":2392},{"style":1189},[2393],{"type":47,"value":1211},{"type":41,"tag":104,"props":2395,"children":2396},{"style":1189},[2397],{"type":47,"value":1312},{"type":41,"tag":104,"props":2399,"children":2400},{"style":1232},[2401],{"type":47,"value":1597},{"type":41,"tag":104,"props":2403,"children":2404},{"style":1189},[2405],{"type":47,"value":1602},{"type":41,"tag":104,"props":2407,"children":2408},{"style":1189},[2409],{"type":47,"value":2410}," ],\n",{"type":41,"tag":104,"props":2412,"children":2414},{"class":106,"line":2413},12,[2415,2419,2424,2428,2432,2436,2441,2445],{"type":41,"tag":104,"props":2416,"children":2417},{"style":1189},[2418],{"type":47,"value":1200},{"type":41,"tag":104,"props":2420,"children":2421},{"style":1203},[2422],{"type":47,"value":2423},"ltv",{"type":41,"tag":104,"props":2425,"children":2426},{"style":1189},[2427],{"type":47,"value":1211},{"type":41,"tag":104,"props":2429,"children":2430},{"style":1189},[2431],{"type":47,"value":1010},{"type":41,"tag":104,"props":2433,"children":2434},{"style":1232},[2435],{"type":47,"value":2285},{"type":41,"tag":104,"props":2437,"children":2438},{"style":1189},[2439],{"type":47,"value":2440},"null",{"type":41,"tag":104,"props":2442,"children":2443},{"style":1232},[2444],{"type":47,"value":2255},{"type":41,"tag":104,"props":2446,"children":2447},{"style":1189},[2448],{"type":47,"value":886},{"type":41,"tag":104,"props":2450,"children":2452},{"class":106,"line":2451},13,[2453,2457,2462,2466,2470,2474,2478,2482],{"type":41,"tag":104,"props":2454,"children":2455},{"style":1189},[2456],{"type":47,"value":1200},{"type":41,"tag":104,"props":2458,"children":2459},{"style":1203},[2460],{"type":47,"value":2461},"healthFactor",{"type":41,"tag":104,"props":2463,"children":2464},{"style":1189},[2465],{"type":47,"value":1211},{"type":41,"tag":104,"props":2467,"children":2468},{"style":1189},[2469],{"type":47,"value":1010},{"type":41,"tag":104,"props":2471,"children":2472},{"style":1232},[2473],{"type":47,"value":2285},{"type":41,"tag":104,"props":2475,"children":2476},{"style":1189},[2477],{"type":47,"value":2440},{"type":41,"tag":104,"props":2479,"children":2480},{"style":1232},[2481],{"type":47,"value":2255},{"type":41,"tag":104,"props":2483,"children":2484},{"style":1189},[2485],{"type":47,"value":886},{"type":41,"tag":104,"props":2487,"children":2489},{"class":106,"line":2488},14,[2490,2494,2499,2503,2507,2511,2516],{"type":41,"tag":104,"props":2491,"children":2492},{"style":1189},[2493],{"type":47,"value":1200},{"type":41,"tag":104,"props":2495,"children":2496},{"style":1203},[2497],{"type":47,"value":2498},"liquidationPriceFormatted",{"type":41,"tag":104,"props":2500,"children":2501},{"style":1189},[2502],{"type":47,"value":1211},{"type":41,"tag":104,"props":2504,"children":2505},{"style":1189},[2506],{"type":47,"value":1010},{"type":41,"tag":104,"props":2508,"children":2509},{"style":1189},[2510],{"type":47,"value":1220},{"type":41,"tag":104,"props":2512,"children":2513},{"style":116},[2514],{"type":47,"value":2515},"\u003Cstring>",{"type":41,"tag":104,"props":2517,"children":2518},{"style":1189},[2519],{"type":47,"value":2202},{"type":41,"tag":104,"props":2521,"children":2523},{"class":106,"line":2522},15,[2524],{"type":41,"tag":104,"props":2525,"children":2526},{"style":1189},[2527],{"type":47,"value":1616},{"type":41,"tag":57,"props":2529,"children":2530},{},[2531,2536,2538,2543,2545,2550,2552,2557,2559,2565,2567,2572,2573,2578,2580,2586,2588,2593,2595,2600,2602,2607],{"type":41,"tag":63,"props":2532,"children":2534},{"className":2533},[],[2535],{"type":47,"value":2224},{"type":47,"value":2537}," \u002F ",{"type":41,"tag":63,"props":2539,"children":2541},{"className":2540},[],[2542],{"type":47,"value":2272},{"type":47,"value":2544}," echo what the verb touched (the\ninverse pair is omitted; e.g. ",{"type":41,"tag":63,"props":2546,"children":2548},{"className":2547},[],[2549],{"type":47,"value":1849},{"type":47,"value":2551}," reports only ",{"type":41,"tag":63,"props":2553,"children":2555},{"className":2554},[],[2556],{"type":47,"value":2224},{"type":47,"value":2558},"). The\nliteral string ",{"type":41,"tag":63,"props":2560,"children":2562},{"className":2561},[],[2563],{"type":47,"value":2564},"\"max\"",{"type":47,"value":2566}," means the SDK resolved the full balance at\ndispatch time. ",{"type":41,"tag":63,"props":2568,"children":2570},{"className":2569},[],[2571],{"type":47,"value":2423},{"type":47,"value":697},{"type":41,"tag":63,"props":2574,"children":2576},{"className":2575},[],[2577],{"type":47,"value":2461},{"type":47,"value":2579}," come from the SDK's\n",{"type":41,"tag":63,"props":2581,"children":2583},{"className":2582},[],[2584],{"type":47,"value":2585},"positionAfter",{"type":47,"value":2587}," snapshot and are ",{"type":41,"tag":63,"props":2589,"children":2591},{"className":2590},[],[2592],{"type":47,"value":2440},{"type":47,"value":2594}," when the action left no debt\n(divide-by-zero guard); they are omitted when the SDK did not surface a\n",{"type":41,"tag":63,"props":2596,"children":2598},{"className":2597},[],[2599],{"type":47,"value":2585},{"type":47,"value":2601},". ",{"type":41,"tag":63,"props":2603,"children":2605},{"className":2604},[],[2606],{"type":47,"value":1508},{"type":47,"value":2608}," is always an array, normalised the same\nway as lend \u002F swap.",{"type":41,"tag":57,"props":2610,"children":2611},{},[2612,2613,2618,2619,2624],{"type":47,"value":1660},{"type":41,"tag":63,"props":2614,"children":2616},{"className":2615},[],[2617],{"type":47,"value":1666},{"type":47,"value":1668},{"type":41,"tag":63,"props":2620,"children":2622},{"className":2621},[],[2623],{"type":47,"value":1674},{"type":47,"value":2625},"\nerror envelope on stderr (exit 5).",{"type":41,"tag":57,"props":2627,"children":2628},{},[2629,2634,2636,2641,2642,2648],{"type":41,"tag":63,"props":2630,"children":2632},{"className":2631},[],[2633],{"type":47,"value":242},{"type":47,"value":2635}," reads any wallet's\nposition without needing ",{"type":41,"tag":63,"props":2637,"children":2639},{"className":2638},[],[2640],{"type":47,"value":250},{"type":47,"value":2601},{"type":41,"tag":63,"props":2643,"children":2645},{"className":2644},[],[2646],{"type":47,"value":2647},"wallet borrow position",{"type":47,"value":2649}," uses the\nconnected wallet.",{"type":41,"tag":57,"props":2651,"children":2652},{},[2653,2659,2660,2666,2668,2674,2676,2681,2683,2688,2690,2695],{"type":41,"tag":63,"props":2654,"children":2656},{"className":2655},[],[2657],{"type":47,"value":2658},"borrow markets",{"type":47,"value":2537},{"type":41,"tag":63,"props":2661,"children":2663},{"className":2662},[],[2664],{"type":47,"value":2665},"borrow market",{"type":47,"value":2667}," \u002F both ",{"type":41,"tag":63,"props":2669,"children":2671},{"className":2670},[],[2672],{"type":47,"value":2673},"position",{"type":47,"value":2675}," commands return the\nSDK shapes verbatim with bigints stringified. Position fields ",{"type":41,"tag":63,"props":2677,"children":2679},{"className":2678},[],[2680],{"type":47,"value":2423},{"type":47,"value":2682}," and\n",{"type":41,"tag":63,"props":2684,"children":2686},{"className":2685},[],[2687],{"type":47,"value":2461},{"type":47,"value":2689}," are ",{"type":41,"tag":63,"props":2691,"children":2693},{"className":2692},[],[2694],{"type":47,"value":2440},{"type":47,"value":2696}," when there is no outstanding debt.",{"type":41,"tag":57,"props":2698,"children":2699},{},[2700],{"type":47,"value":1748},{"type":41,"tag":164,"props":2702,"children":2703},{},[2704,2715,2726,2737,2748,2759,2770,2781],{"type":41,"tag":168,"props":2705,"children":2706},{},[2707,2709],{"type":47,"value":2708},"\"what borrow markets are available\" -> ",{"type":41,"tag":63,"props":2710,"children":2712},{"className":2711},[],[2713],{"type":47,"value":2714},"actions --json borrow markets",{"type":41,"tag":168,"props":2716,"children":2717},{},[2718,2720],{"type":47,"value":2719},"\"borrow 1 OP against 2 USDC of collateral on the demo market\" ->\n",{"type":41,"tag":63,"props":2721,"children":2723},{"className":2722},[],[2724],{"type":47,"value":2725},"actions --json wallet borrow open --market demo-dusdc-op --borrow-amount 1 --collateral-amount 2",{"type":41,"tag":168,"props":2727,"children":2728},{},[2729,2731],{"type":47,"value":2730},"\"close my borrow position completely\" ->\n",{"type":41,"tag":63,"props":2732,"children":2734},{"className":2733},[],[2735],{"type":47,"value":2736},"actions --json wallet borrow close --market demo-dusdc-op --borrow-max --collateral-max",{"type":41,"tag":168,"props":2738,"children":2739},{},[2740,2742],{"type":47,"value":2741},"\"repay all my debt on demo dUSDC\u002FOP\" ->\n",{"type":41,"tag":63,"props":2743,"children":2745},{"className":2744},[],[2746],{"type":47,"value":2747},"actions --json wallet borrow repay --market demo-dusdc-op --max",{"type":41,"tag":168,"props":2749,"children":2750},{},[2751,2753],{"type":47,"value":2752},"\"withdraw all collateral from demo dUSDC\u002FOP\" ->\n",{"type":41,"tag":63,"props":2754,"children":2756},{"className":2755},[],[2757],{"type":47,"value":2758},"actions --json wallet borrow withdraw-collateral --market demo-dusdc-op --max",{"type":41,"tag":168,"props":2760,"children":2761},{},[2762,2764],{"type":47,"value":2763},"\"top up 5 USDC of collateral on demo dUSDC\u002FOP\" ->\n",{"type":41,"tag":63,"props":2765,"children":2767},{"className":2766},[],[2768],{"type":47,"value":2769},"actions --json wallet borrow deposit-collateral --market demo-dusdc-op --amount 5",{"type":41,"tag":168,"props":2771,"children":2772},{},[2773,2775],{"type":47,"value":2774},"\"what's the health factor of 0x... on demo dUSDC\u002FOP\" ->\n",{"type":41,"tag":63,"props":2776,"children":2778},{"className":2777},[],[2779],{"type":47,"value":2780},"actions --json borrow position --market demo-dusdc-op --wallet 0x...",{"type":41,"tag":168,"props":2782,"children":2783},{},[2784,2786],{"type":47,"value":2785},"\"how am I doing in demo dUSDC\u002FOP\" ->\n",{"type":41,"tag":63,"props":2787,"children":2789},{"className":2788},[],[2790],{"type":47,"value":2791},"actions --json wallet borrow position --market demo-dusdc-op",{"type":41,"tag":50,"props":2793,"children":2795},{"id":2794},"swap-semantics",[2796],{"type":47,"value":2797},"Swap semantics",{"type":41,"tag":57,"props":2799,"children":2800},{},[2801,2806,2807,2813,2815,2821,2823,2829,2831,2836,2838,2844],{"type":41,"tag":63,"props":2802,"children":2804},{"className":2803},[],[2805],{"type":47,"value":884},{"type":47,"value":1687},{"type":41,"tag":63,"props":2808,"children":2810},{"className":2809},[],[2811],{"type":47,"value":2812},"SwapQuote",{"type":47,"value":2814}," shape verbatim: amounts (both\ndisplay and ",{"type":41,"tag":63,"props":2816,"children":2818},{"className":2817},[],[2819],{"type":47,"value":2820},"Raw",{"type":47,"value":2822}," bigint), price + price-impact, slippage (decimal),\ndeadline, and pre-built ",{"type":41,"tag":63,"props":2824,"children":2826},{"className":2825},[],[2827],{"type":47,"value":2828},"execution",{"type":47,"value":2830}," calldata. ",{"type":41,"tag":63,"props":2832,"children":2834},{"className":2833},[],[2835],{"type":47,"value":892},{"type":47,"value":2837}," is the\nmulti-provider variant sorted by ",{"type":41,"tag":63,"props":2839,"children":2841},{"className":2840},[],[2842],{"type":47,"value":2843},"amountOutRaw",{"type":47,"value":2845}," desc.",{"type":41,"tag":57,"props":2847,"children":2848},{},[2849,2854],{"type":41,"tag":63,"props":2850,"children":2852},{"className":2851},[],[2853],{"type":47,"value":900},{"type":47,"value":2855}," emits a structured envelope on stdout:",{"type":41,"tag":93,"props":2857,"children":2859},{"className":1177,"code":2858,"language":1179,"meta":98,"style":98},"{\n  \"action\": \"execute\",\n  \"assetIn\":  { \"symbol\": \"USDC_DEMO\" },\n  \"assetOut\": { \"symbol\": \"OP_DEMO\" },\n  \"amountIn\": 5, \"amountOut\": 4.9,\n  \"amountInRaw\":  \"5000000\",\n  \"amountOutRaw\": \"4900000000000000000\",\n  \"price\": 0.98, \"priceImpact\": 0.001,\n  \"transactions\": [ { \"transactionHash\": \"0x...\", \"status\": \"success\", ... } ]\n}\n",[2860],{"type":41,"tag":63,"props":2861,"children":2862},{"__ignoreMap":98},[2863,2870,2906,2962,3018,3073,3110,3146,3201,3304],{"type":41,"tag":104,"props":2864,"children":2865},{"class":106,"line":107},[2866],{"type":41,"tag":104,"props":2867,"children":2868},{"style":1189},[2869],{"type":47,"value":1192},{"type":41,"tag":104,"props":2871,"children":2872},{"class":106,"line":127},[2873,2877,2881,2885,2889,2893,2898,2902],{"type":41,"tag":104,"props":2874,"children":2875},{"style":1189},[2876],{"type":47,"value":1200},{"type":41,"tag":104,"props":2878,"children":2879},{"style":1203},[2880],{"type":47,"value":1206},{"type":41,"tag":104,"props":2882,"children":2883},{"style":1189},[2884],{"type":47,"value":1211},{"type":41,"tag":104,"props":2886,"children":2887},{"style":1189},[2888],{"type":47,"value":1010},{"type":41,"tag":104,"props":2890,"children":2891},{"style":1189},[2892],{"type":47,"value":1220},{"type":41,"tag":104,"props":2894,"children":2895},{"style":116},[2896],{"type":47,"value":2897},"execute",{"type":41,"tag":104,"props":2899,"children":2900},{"style":1189},[2901],{"type":47,"value":1211},{"type":41,"tag":104,"props":2903,"children":2904},{"style":1189},[2905],{"type":47,"value":886},{"type":41,"tag":104,"props":2907,"children":2908},{"class":106,"line":1255},[2909,2913,2918,2922,2926,2930,2934,2938,2942,2946,2950,2954,2958],{"type":41,"tag":104,"props":2910,"children":2911},{"style":1189},[2912],{"type":47,"value":1200},{"type":41,"tag":104,"props":2914,"children":2915},{"style":1203},[2916],{"type":47,"value":2917},"assetIn",{"type":41,"tag":104,"props":2919,"children":2920},{"style":1189},[2921],{"type":47,"value":1211},{"type":41,"tag":104,"props":2923,"children":2924},{"style":1189},[2925],{"type":47,"value":1010},{"type":41,"tag":104,"props":2927,"children":2928},{"style":1189},[2929],{"type":47,"value":1432},{"type":41,"tag":104,"props":2931,"children":2932},{"style":1189},[2933],{"type":47,"value":1220},{"type":41,"tag":104,"props":2935,"children":2936},{"style":111},[2937],{"type":47,"value":1441},{"type":41,"tag":104,"props":2939,"children":2940},{"style":1189},[2941],{"type":47,"value":1211},{"type":41,"tag":104,"props":2943,"children":2944},{"style":1189},[2945],{"type":47,"value":1010},{"type":41,"tag":104,"props":2947,"children":2948},{"style":1189},[2949],{"type":47,"value":1220},{"type":41,"tag":104,"props":2951,"children":2952},{"style":116},[2953],{"type":47,"value":582},{"type":41,"tag":104,"props":2955,"children":2956},{"style":1189},[2957],{"type":47,"value":1211},{"type":41,"tag":104,"props":2959,"children":2960},{"style":1189},[2961],{"type":47,"value":1406},{"type":41,"tag":104,"props":2963,"children":2964},{"class":106,"line":1409},[2965,2969,2974,2978,2982,2986,2990,2994,2998,3002,3006,3010,3014],{"type":41,"tag":104,"props":2966,"children":2967},{"style":1189},[2968],{"type":47,"value":1200},{"type":41,"tag":104,"props":2970,"children":2971},{"style":1203},[2972],{"type":47,"value":2973},"assetOut",{"type":41,"tag":104,"props":2975,"children":2976},{"style":1189},[2977],{"type":47,"value":1211},{"type":41,"tag":104,"props":2979,"children":2980},{"style":1189},[2981],{"type":47,"value":1010},{"type":41,"tag":104,"props":2983,"children":2984},{"style":1189},[2985],{"type":47,"value":1278},{"type":41,"tag":104,"props":2987,"children":2988},{"style":1189},[2989],{"type":47,"value":1220},{"type":41,"tag":104,"props":2991,"children":2992},{"style":111},[2993],{"type":47,"value":1441},{"type":41,"tag":104,"props":2995,"children":2996},{"style":1189},[2997],{"type":47,"value":1211},{"type":41,"tag":104,"props":2999,"children":3000},{"style":1189},[3001],{"type":47,"value":1010},{"type":41,"tag":104,"props":3003,"children":3004},{"style":1189},[3005],{"type":47,"value":1220},{"type":41,"tag":104,"props":3007,"children":3008},{"style":116},[3009],{"type":47,"value":590},{"type":41,"tag":104,"props":3011,"children":3012},{"style":1189},[3013],{"type":47,"value":1211},{"type":41,"tag":104,"props":3015,"children":3016},{"style":1189},[3017],{"type":47,"value":1406},{"type":41,"tag":104,"props":3019,"children":3020},{"class":106,"line":1468},[3021,3025,3030,3034,3038,3043,3047,3051,3056,3060,3064,3069],{"type":41,"tag":104,"props":3022,"children":3023},{"style":1189},[3024],{"type":47,"value":1200},{"type":41,"tag":104,"props":3026,"children":3027},{"style":1203},[3028],{"type":47,"value":3029},"amountIn",{"type":41,"tag":104,"props":3031,"children":3032},{"style":1189},[3033],{"type":47,"value":1211},{"type":41,"tag":104,"props":3035,"children":3036},{"style":1189},[3037],{"type":47,"value":1010},{"type":41,"tag":104,"props":3039,"children":3040},{"style":2057},[3041],{"type":47,"value":3042}," 5",{"type":41,"tag":104,"props":3044,"children":3045},{"style":1189},[3046],{"type":47,"value":1312},{"type":41,"tag":104,"props":3048,"children":3049},{"style":1189},[3050],{"type":47,"value":1220},{"type":41,"tag":104,"props":3052,"children":3053},{"style":1203},[3054],{"type":47,"value":3055},"amountOut",{"type":41,"tag":104,"props":3057,"children":3058},{"style":1189},[3059],{"type":47,"value":1211},{"type":41,"tag":104,"props":3061,"children":3062},{"style":1189},[3063],{"type":47,"value":1010},{"type":41,"tag":104,"props":3065,"children":3066},{"style":2057},[3067],{"type":47,"value":3068}," 4.9",{"type":41,"tag":104,"props":3070,"children":3071},{"style":1189},[3072],{"type":47,"value":886},{"type":41,"tag":104,"props":3074,"children":3075},{"class":106,"line":1498},[3076,3080,3085,3089,3093,3097,3102,3106],{"type":41,"tag":104,"props":3077,"children":3078},{"style":1189},[3079],{"type":47,"value":1200},{"type":41,"tag":104,"props":3081,"children":3082},{"style":1203},[3083],{"type":47,"value":3084},"amountInRaw",{"type":41,"tag":104,"props":3086,"children":3087},{"style":1189},[3088],{"type":47,"value":1211},{"type":41,"tag":104,"props":3090,"children":3091},{"style":1189},[3092],{"type":47,"value":1010},{"type":41,"tag":104,"props":3094,"children":3095},{"style":1189},[3096],{"type":47,"value":1200},{"type":41,"tag":104,"props":3098,"children":3099},{"style":116},[3100],{"type":47,"value":3101},"5000000",{"type":41,"tag":104,"props":3103,"children":3104},{"style":1189},[3105],{"type":47,"value":1211},{"type":41,"tag":104,"props":3107,"children":3108},{"style":1189},[3109],{"type":47,"value":886},{"type":41,"tag":104,"props":3111,"children":3112},{"class":106,"line":1610},[3113,3117,3121,3125,3129,3133,3138,3142],{"type":41,"tag":104,"props":3114,"children":3115},{"style":1189},[3116],{"type":47,"value":1200},{"type":41,"tag":104,"props":3118,"children":3119},{"style":1203},[3120],{"type":47,"value":2843},{"type":41,"tag":104,"props":3122,"children":3123},{"style":1189},[3124],{"type":47,"value":1211},{"type":41,"tag":104,"props":3126,"children":3127},{"style":1189},[3128],{"type":47,"value":1010},{"type":41,"tag":104,"props":3130,"children":3131},{"style":1189},[3132],{"type":47,"value":1220},{"type":41,"tag":104,"props":3134,"children":3135},{"style":116},[3136],{"type":47,"value":3137},"4900000000000000000",{"type":41,"tag":104,"props":3139,"children":3140},{"style":1189},[3141],{"type":47,"value":1211},{"type":41,"tag":104,"props":3143,"children":3144},{"style":1189},[3145],{"type":47,"value":886},{"type":41,"tag":104,"props":3147,"children":3148},{"class":106,"line":2205},[3149,3153,3158,3162,3166,3171,3175,3179,3184,3188,3192,3197],{"type":41,"tag":104,"props":3150,"children":3151},{"style":1189},[3152],{"type":47,"value":1200},{"type":41,"tag":104,"props":3154,"children":3155},{"style":1203},[3156],{"type":47,"value":3157},"price",{"type":41,"tag":104,"props":3159,"children":3160},{"style":1189},[3161],{"type":47,"value":1211},{"type":41,"tag":104,"props":3163,"children":3164},{"style":1189},[3165],{"type":47,"value":1010},{"type":41,"tag":104,"props":3167,"children":3168},{"style":2057},[3169],{"type":47,"value":3170}," 0.98",{"type":41,"tag":104,"props":3172,"children":3173},{"style":1189},[3174],{"type":47,"value":1312},{"type":41,"tag":104,"props":3176,"children":3177},{"style":1189},[3178],{"type":47,"value":1220},{"type":41,"tag":104,"props":3180,"children":3181},{"style":1203},[3182],{"type":47,"value":3183},"priceImpact",{"type":41,"tag":104,"props":3185,"children":3186},{"style":1189},[3187],{"type":47,"value":1211},{"type":41,"tag":104,"props":3189,"children":3190},{"style":1189},[3191],{"type":47,"value":1010},{"type":41,"tag":104,"props":3193,"children":3194},{"style":2057},[3195],{"type":47,"value":3196}," 0.001",{"type":41,"tag":104,"props":3198,"children":3199},{"style":1189},[3200],{"type":47,"value":886},{"type":41,"tag":104,"props":3202,"children":3203},{"class":106,"line":2214},[3204,3208,3212,3216,3220,3224,3228,3232,3236,3240,3244,3248,3252,3256,3260,3264,3268,3272,3276,3280,3284,3288,3292,3296,3300],{"type":41,"tag":104,"props":3205,"children":3206},{"style":1189},[3207],{"type":47,"value":1200},{"type":41,"tag":104,"props":3209,"children":3210},{"style":1203},[3211],{"type":47,"value":1508},{"type":41,"tag":104,"props":3213,"children":3214},{"style":1189},[3215],{"type":47,"value":1211},{"type":41,"tag":104,"props":3217,"children":3218},{"style":1189},[3219],{"type":47,"value":1010},{"type":41,"tag":104,"props":3221,"children":3222},{"style":1189},[3223],{"type":47,"value":1521},{"type":41,"tag":104,"props":3225,"children":3226},{"style":1189},[3227],{"type":47,"value":1278},{"type":41,"tag":104,"props":3229,"children":3230},{"style":1189},[3231],{"type":47,"value":1220},{"type":41,"tag":104,"props":3233,"children":3234},{"style":111},[3235],{"type":47,"value":1534},{"type":41,"tag":104,"props":3237,"children":3238},{"style":1189},[3239],{"type":47,"value":1211},{"type":41,"tag":104,"props":3241,"children":3242},{"style":1189},[3243],{"type":47,"value":1010},{"type":41,"tag":104,"props":3245,"children":3246},{"style":1189},[3247],{"type":47,"value":1220},{"type":41,"tag":104,"props":3249,"children":3250},{"style":116},[3251],{"type":47,"value":1338},{"type":41,"tag":104,"props":3253,"children":3254},{"style":1189},[3255],{"type":47,"value":1211},{"type":41,"tag":104,"props":3257,"children":3258},{"style":1189},[3259],{"type":47,"value":1312},{"type":41,"tag":104,"props":3261,"children":3262},{"style":1189},[3263],{"type":47,"value":1220},{"type":41,"tag":104,"props":3265,"children":3266},{"style":111},[3267],{"type":47,"value":1567},{"type":41,"tag":104,"props":3269,"children":3270},{"style":1189},[3271],{"type":47,"value":1211},{"type":41,"tag":104,"props":3273,"children":3274},{"style":1189},[3275],{"type":47,"value":1010},{"type":41,"tag":104,"props":3277,"children":3278},{"style":1189},[3279],{"type":47,"value":1220},{"type":41,"tag":104,"props":3281,"children":3282},{"style":116},[3283],{"type":47,"value":1584},{"type":41,"tag":104,"props":3285,"children":3286},{"style":1189},[3287],{"type":47,"value":1211},{"type":41,"tag":104,"props":3289,"children":3290},{"style":1189},[3291],{"type":47,"value":1312},{"type":41,"tag":104,"props":3293,"children":3294},{"style":1232},[3295],{"type":47,"value":1597},{"type":41,"tag":104,"props":3297,"children":3298},{"style":1189},[3299],{"type":47,"value":1602},{"type":41,"tag":104,"props":3301,"children":3302},{"style":1189},[3303],{"type":47,"value":1607},{"type":41,"tag":104,"props":3305,"children":3306},{"class":106,"line":2262},[3307],{"type":41,"tag":104,"props":3308,"children":3309},{"style":1189},[3310],{"type":47,"value":1616},{"type":41,"tag":57,"props":3312,"children":3313},{},[3314,3319,3321,3326,3328,3333],{"type":41,"tag":63,"props":3315,"children":3317},{"className":3316},[],[3318],{"type":47,"value":1508},{"type":47,"value":3320}," is always an array. EOA execution can fan out into\ntoken-approval + Permit2-approval + swap (up to 3 receipts); smart\nwallets collapse to a single UserOp receipt. A receipt with\n",{"type":41,"tag":63,"props":3322,"children":3324},{"className":3323},[],[3325],{"type":47,"value":1666},{"type":47,"value":3327}," is normalised to ",{"type":41,"tag":63,"props":3329,"children":3331},{"className":3330},[],[3332],{"type":47,"value":1674},{"type":47,"value":3334}," exit 5.",{"type":41,"tag":57,"props":3336,"children":3337},{},[3338,3344],{"type":41,"tag":63,"props":3339,"children":3341},{"className":3340},[],[3342],{"type":47,"value":3343},"wallet swap execute --recipient \u003Caddr|ens>",{"type":47,"value":3345}," accepts either a 0x address\nor an ENS name. Pass ENS names through this field when the user wants the\nswap output sent somewhere other than the connected wallet.",{"type":41,"tag":57,"props":3347,"children":3348},{},[3349],{"type":47,"value":1748},{"type":41,"tag":164,"props":3351,"children":3352},{},[3353,3364,3375,3386,3397,3408,3419],{"type":41,"tag":168,"props":3354,"children":3355},{},[3356,3358],{"type":47,"value":3357},"\"swap 5 USDC for OP on Unichain\" -> ",{"type":41,"tag":63,"props":3359,"children":3361},{"className":3360},[],[3362],{"type":47,"value":3363},"actions --json wallet swap execute --in USDC_DEMO --out OP_DEMO --amount-in 5 --chain unichain",{"type":41,"tag":168,"props":3365,"children":3366},{},[3367,3369],{"type":47,"value":3368},"\"buy 1 OP with USDC\" -> ",{"type":41,"tag":63,"props":3370,"children":3372},{"className":3371},[],[3373],{"type":47,"value":3374},"actions --json wallet swap execute --in USDC_DEMO --out OP_DEMO --amount-out 1 --chain unichain",{"type":41,"tag":168,"props":3376,"children":3377},{},[3378,3380],{"type":47,"value":3379},"\"swap 1 USDC for OP and send it to vitalik.eth\" -> ",{"type":41,"tag":63,"props":3381,"children":3383},{"className":3382},[],[3384],{"type":47,"value":3385},"actions --json wallet swap execute --in USDC_DEMO --out OP_DEMO --amount-in 1 --chain unichain --recipient vitalik.eth",{"type":41,"tag":168,"props":3387,"children":3388},{},[3389,3391],{"type":47,"value":3390},"\"send swap output to 0xd8dA...96045\" -> ",{"type":41,"tag":63,"props":3392,"children":3394},{"className":3393},[],[3395],{"type":47,"value":3396},"actions --json wallet swap execute --in USDC_DEMO --out OP_DEMO --amount-in 1 --chain unichain --recipient 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",{"type":41,"tag":168,"props":3398,"children":3399},{},[3400,3402],{"type":47,"value":3401},"\"what's the best price for 100 USDC -> OP\" -> ",{"type":41,"tag":63,"props":3403,"children":3405},{"className":3404},[],[3406],{"type":47,"value":3407},"actions --json swap quote --in USDC_DEMO --out OP_DEMO --amount-in 100 --chain unichain",{"type":41,"tag":168,"props":3409,"children":3410},{},[3411,3413],{"type":47,"value":3412},"\"compare provider quotes\" -> ",{"type":41,"tag":63,"props":3414,"children":3416},{"className":3415},[],[3417],{"type":47,"value":3418},"actions --json swap quotes --in USDC_DEMO --out OP_DEMO --amount-in 100 --chain unichain",{"type":41,"tag":168,"props":3420,"children":3421},{},[3422,3424],{"type":47,"value":3423},"\"execute on Velodrome with 1% slippage\" -> ",{"type":41,"tag":63,"props":3425,"children":3427},{"className":3426},[],[3428],{"type":47,"value":3429},"actions --json wallet swap execute --in USDC_DEMO --out OP_DEMO --amount-in 100 --chain unichain --provider velodrome --slippage 1",{"type":41,"tag":50,"props":3431,"children":3433},{"id":3432},"ens-semantics",[3434],{"type":47,"value":3435},"ENS semantics",{"type":41,"tag":57,"props":3437,"children":3438},{},[3439,3441,3446,3448,3454],{"type":47,"value":3440},"Read-only name resolution on Ethereum mainnet (chain ID 1). No\n",{"type":41,"tag":63,"props":3442,"children":3444},{"className":3443},[],[3445],{"type":47,"value":250},{"type":47,"value":3447}," is required. Setting ",{"type":41,"tag":63,"props":3449,"children":3451},{"className":3450},[],[3452],{"type":47,"value":3453},"MAINNET_RPC_URL",{"type":47,"value":3455}," uses an\noperator-configured mainnet RPC; when it is unset, the SDK's public RPC\nfallback is used and the CLI prints a warning to stderr.",{"type":41,"tag":164,"props":3457,"children":3458},{},[3459,3493,3539],{"type":41,"tag":168,"props":3460,"children":3461},{},[3462,3467,3469,3475,3477,3483,3485,3491],{"type":41,"tag":63,"props":3463,"children":3465},{"className":3464},[],[3466],{"type":47,"value":1321},{"type":47,"value":3468}," takes an ENS name (must be dot-separated, e.g. ",{"type":41,"tag":63,"props":3470,"children":3472},{"className":3471},[],[3473],{"type":47,"value":3474},"vitalik.eth",{"type":47,"value":3476},")\nand emits ",{"type":41,"tag":63,"props":3478,"children":3480},{"className":3479},[],[3481],{"type":47,"value":3482},"{ name, address }",{"type":47,"value":3484},". A non-name input (raw address, bare\nlabel) exits ",{"type":41,"tag":63,"props":3486,"children":3488},{"className":3487},[],[3489],{"type":47,"value":3490},"validation",{"type":47,"value":3492}," (2).",{"type":41,"tag":168,"props":3494,"children":3495},{},[3496,3501,3503,3509,3511,3517,3519,3524,3526,3531,3533,3538],{"type":41,"tag":63,"props":3497,"children":3499},{"className":3498},[],[3500],{"type":47,"value":672},{"type":47,"value":3502}," takes a ",{"type":41,"tag":63,"props":3504,"children":3506},{"className":3505},[],[3507],{"type":47,"value":3508},"0x",{"type":47,"value":3510}," address and emits ",{"type":41,"tag":63,"props":3512,"children":3514},{"className":3513},[],[3515],{"type":47,"value":3516},"{ address, name }",{"type":47,"value":3518},", where\n",{"type":41,"tag":63,"props":3520,"children":3522},{"className":3521},[],[3523],{"type":47,"value":672},{"type":47,"value":3525}," is ",{"type":41,"tag":63,"props":3527,"children":3529},{"className":3528},[],[3530],{"type":47,"value":2440},{"type":47,"value":3532}," when the address has no primary ENS record. A\nnon-address input exits ",{"type":41,"tag":63,"props":3534,"children":3536},{"className":3535},[],[3537],{"type":47,"value":3490},{"type":47,"value":3492},{"type":41,"tag":168,"props":3540,"children":3541},{},[3542,3548,3550,3556,3558,3564,3565,3571,3572,3578,3579,3585,3586,3592,3593,3599,3600,3606,3607,3613,3614,3620,3621,3627,3629,3635,3637,3642,3644,3649],{"type":41,"tag":63,"props":3543,"children":3545},{"className":3544},[],[3546],{"type":47,"value":3547},"info",{"type":47,"value":3549}," takes either a name or an address and emits the SDK ",{"type":41,"tag":63,"props":3551,"children":3553},{"className":3552},[],[3554],{"type":47,"value":3555},"EnsInfo",{"type":47,"value":3557},"\nshape verbatim: the standard ENSIP-5 \u002F ENSIP-18 profile text records\n(",{"type":41,"tag":63,"props":3559,"children":3561},{"className":3560},[],[3562],{"type":47,"value":3563},"avatar",{"type":47,"value":584},{"type":41,"tag":63,"props":3566,"children":3568},{"className":3567},[],[3569],{"type":47,"value":3570},"display",{"type":47,"value":584},{"type":41,"tag":63,"props":3573,"children":3575},{"className":3574},[],[3576],{"type":47,"value":3577},"description",{"type":47,"value":584},{"type":41,"tag":63,"props":3580,"children":3582},{"className":3581},[],[3583],{"type":47,"value":3584},"url",{"type":47,"value":584},{"type":41,"tag":63,"props":3587,"children":3589},{"className":3588},[],[3590],{"type":47,"value":3591},"email",{"type":47,"value":584},{"type":41,"tag":63,"props":3594,"children":3596},{"className":3595},[],[3597],{"type":47,"value":3598},"keywords",{"type":47,"value":886},{"type":41,"tag":63,"props":3601,"children":3603},{"className":3602},[],[3604],{"type":47,"value":3605},"twitter",{"type":47,"value":584},{"type":41,"tag":63,"props":3608,"children":3610},{"className":3609},[],[3611],{"type":47,"value":3612},"github",{"type":47,"value":584},{"type":41,"tag":63,"props":3615,"children":3617},{"className":3616},[],[3618],{"type":47,"value":3619},"discord",{"type":47,"value":584},{"type":41,"tag":63,"props":3622,"children":3624},{"className":3623},[],[3625],{"type":47,"value":3626},"reddit",{"type":47,"value":3628},"), each ",{"type":41,"tag":63,"props":3630,"children":3632},{"className":3631},[],[3633],{"type":47,"value":3634},"string",{"type":47,"value":3636}," or ",{"type":41,"tag":63,"props":3638,"children":3640},{"className":3639},[],[3641],{"type":47,"value":2440},{"type":47,"value":3643},". An\nall-",{"type":41,"tag":63,"props":3645,"children":3647},{"className":3646},[],[3648],{"type":47,"value":2440},{"type":47,"value":3650}," result is a normal success (the name exists but set no\nrecords), not an error.",{"type":41,"tag":57,"props":3652,"children":3653},{},[3654,3656,3661,3663,3669,3670,3676,3678,3684],{"type":47,"value":3655},"Setting ",{"type":41,"tag":63,"props":3657,"children":3659},{"className":3658},[],[3660],{"type":47,"value":3453},{"type":47,"value":3662}," adds mainnet to the CLI's shared chain set, so\nit also becomes a valid ",{"type":41,"tag":63,"props":3664,"children":3666},{"className":3665},[],[3667],{"type":47,"value":3668},"--chain mainnet",{"type":47,"value":2537},{"type":41,"tag":63,"props":3671,"children":3673},{"className":3672},[],[3674],{"type":47,"value":3675},"--chain-id 1",{"type":47,"value":3677}," target and is\nincluded in the default ",{"type":41,"tag":63,"props":3679,"children":3681},{"className":3680},[],[3682],{"type":47,"value":3683},"wallet balance",{"type":47,"value":3685}," fan-out. The demo lend\u002Fborrow\u002Fswap\nmarkets are testnet-only, so this affects reads (balances), not write targets.",{"type":41,"tag":57,"props":3687,"children":3688},{},[3689],{"type":47,"value":1748},{"type":41,"tag":164,"props":3691,"children":3692},{},[3693,3704,3714,3725,3736],{"type":41,"tag":168,"props":3694,"children":3695},{},[3696,3698],{"type":47,"value":3697},"\"what address is vitalik.eth\" -> ",{"type":41,"tag":63,"props":3699,"children":3701},{"className":3700},[],[3702],{"type":47,"value":3703},"actions --json ens address vitalik.eth",{"type":41,"tag":168,"props":3705,"children":3706},{},[3707,3709],{"type":47,"value":3708},"\"resolve vitalik.eth\" -> ",{"type":41,"tag":63,"props":3710,"children":3712},{"className":3711},[],[3713],{"type":47,"value":3703},{"type":41,"tag":168,"props":3715,"children":3716},{},[3717,3719],{"type":47,"value":3718},"\"what's the ENS name for 0xd8dA...96045\" -> ",{"type":41,"tag":63,"props":3720,"children":3722},{"className":3721},[],[3723],{"type":47,"value":3724},"actions --json ens name 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",{"type":41,"tag":168,"props":3726,"children":3727},{},[3728,3730],{"type":47,"value":3729},"\"show vitalik.eth's profile\" -> ",{"type":41,"tag":63,"props":3731,"children":3733},{"className":3732},[],[3734],{"type":47,"value":3735},"actions --json ens info vitalik.eth",{"type":41,"tag":168,"props":3737,"children":3738},{},[3739,3741],{"type":47,"value":3740},"\"get the ENS records for 0xd8dA...96045\" -> ",{"type":41,"tag":63,"props":3742,"children":3744},{"className":3743},[],[3745],{"type":47,"value":3746},"actions --json ens info 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",{"type":41,"tag":50,"props":3748,"children":3750},{"id":3749},"rpc-trust",[3751],{"type":47,"value":3752},"RPC trust",{"type":41,"tag":57,"props":3754,"children":3755},{},[3756,3762,3764,3769],{"type":41,"tag":63,"props":3757,"children":3759},{"className":3758},[],[3760],{"type":47,"value":3761},"*_RPC_URL",{"type":47,"value":3763}," env vars must point to operator-trusted endpoints. A\nmalicious RPC can return fake balance data, which will confuse the\ncaller. The same trust concern applies to ",{"type":41,"tag":63,"props":3765,"children":3767},{"className":3766},[],[3768],{"type":47,"value":3453},{"type":47,"value":3770}," for ENS\nreads: a fake RPC can return a wrong address for a name. If it is unset,\nthe SDK public mainnet fallback is used and the CLI warns on stderr.",{"type":41,"tag":50,"props":3772,"children":3774},{"id":3773},"exit-codes",[3775],{"type":47,"value":3776},"Exit codes",{"type":41,"tag":3778,"props":3779,"children":3780},"table",{},[3781,3805],{"type":41,"tag":3782,"props":3783,"children":3784},"thead",{},[3785],{"type":41,"tag":3786,"props":3787,"children":3788},"tr",{},[3789,3795,3800],{"type":41,"tag":3790,"props":3791,"children":3792},"th",{},[3793],{"type":47,"value":3794},"Code",{"type":41,"tag":3790,"props":3796,"children":3797},{},[3798],{"type":47,"value":3799},"Meaning",{"type":41,"tag":3790,"props":3801,"children":3802},{},[3803],{"type":47,"value":3804},"Retryable",{"type":41,"tag":3806,"props":3807,"children":3808},"tbody",{},[3809,3828,3846,3863,3880,3898],{"type":41,"tag":3786,"props":3810,"children":3811},{},[3812,3818,3823],{"type":41,"tag":3813,"props":3814,"children":3815},"td",{},[3816],{"type":47,"value":3817},"0",{"type":41,"tag":3813,"props":3819,"children":3820},{},[3821],{"type":47,"value":3822},"Success",{"type":41,"tag":3813,"props":3824,"children":3825},{},[3826],{"type":47,"value":3827},"-",{"type":41,"tag":3786,"props":3829,"children":3830},{},[3831,3836,3841],{"type":41,"tag":3813,"props":3832,"children":3833},{},[3834],{"type":47,"value":3835},"1",{"type":41,"tag":3813,"props":3837,"children":3838},{},[3839],{"type":47,"value":3840},"Unknown error",{"type":41,"tag":3813,"props":3842,"children":3843},{},[3844],{"type":47,"value":3845},"false",{"type":41,"tag":3786,"props":3847,"children":3848},{},[3849,3854,3859],{"type":41,"tag":3813,"props":3850,"children":3851},{},[3852],{"type":47,"value":3853},"2",{"type":41,"tag":3813,"props":3855,"children":3856},{},[3857],{"type":47,"value":3858},"Validation (bad input)",{"type":41,"tag":3813,"props":3860,"children":3861},{},[3862],{"type":47,"value":3845},{"type":41,"tag":3786,"props":3864,"children":3865},{},[3866,3871,3876],{"type":41,"tag":3813,"props":3867,"children":3868},{},[3869],{"type":47,"value":3870},"3",{"type":41,"tag":3813,"props":3872,"children":3873},{},[3874],{"type":47,"value":3875},"Config error (missing env, malformed)",{"type":41,"tag":3813,"props":3877,"children":3878},{},[3879],{"type":47,"value":3845},{"type":41,"tag":3786,"props":3881,"children":3882},{},[3883,3888,3893],{"type":41,"tag":3813,"props":3884,"children":3885},{},[3886],{"type":47,"value":3887},"4",{"type":41,"tag":3813,"props":3889,"children":3890},{},[3891],{"type":47,"value":3892},"Network error (RPC, timeout)",{"type":41,"tag":3813,"props":3894,"children":3895},{},[3896],{"type":47,"value":3897},"true",{"type":41,"tag":3786,"props":3899,"children":3900},{},[3901,3906,3911],{"type":41,"tag":3813,"props":3902,"children":3903},{},[3904],{"type":47,"value":3905},"5",{"type":41,"tag":3813,"props":3907,"children":3908},{},[3909],{"type":47,"value":3910},"Onchain error (revert, UserOp failure)",{"type":41,"tag":3813,"props":3912,"children":3913},{},[3914],{"type":47,"value":3915},"false (†)",{"type":41,"tag":57,"props":3917,"children":3918},{},[3919,3921,3926,3928,3934,3936,3942],{"type":47,"value":3920},"(†) Specific onchain sub-classes (nonce conflicts, gas underpricing)\nmay set ",{"type":41,"tag":63,"props":3922,"children":3924},{"className":3923},[],[3925],{"type":47,"value":1045},{"type":47,"value":3927}," via the ",{"type":41,"tag":63,"props":3929,"children":3931},{"className":3930},[],[3932],{"type":47,"value":3933},"retryableOverride",{"type":47,"value":3935}," mechanism. Treat\n",{"type":41,"tag":63,"props":3937,"children":3939},{"className":3938},[],[3940],{"type":47,"value":3941},"retryable",{"type":47,"value":3943}," as the source of truth; the table row shows the default.",{"type":41,"tag":50,"props":3945,"children":3947},{"id":3946},"unknown-commands",[3948],{"type":47,"value":3949},"Unknown commands",{"type":41,"tag":57,"props":3951,"children":3952},{},[3953,3955,3961,3963,3968],{"type":47,"value":3954},"Typos (",{"type":41,"tag":63,"props":3956,"children":3958},{"className":3957},[],[3959],{"type":47,"value":3960},"actions nonsense",{"type":47,"value":3962},") exit 1 with commander's default plain-text\nerror on stderr - ",{"type":41,"tag":72,"props":3964,"children":3965},{},[3966],{"type":47,"value":3967},"not",{"type":47,"value":3969}," the JSON error envelope. This distinction is\ndeliberate: the JSON envelope is only emitted for errors thrown from\nwithin a registered handler.",{"type":41,"tag":3971,"props":3972,"children":3973},"style",{},[3974],{"type":47,"value":3975},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3977,"total":127},[3978,3984],{"slug":4,"name":4,"fn":5,"description":6,"org":3979,"tags":3980,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3981,3982,3983],{"name":14,"slug":15,"type":16},{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"slug":3985,"name":3985,"fn":3986,"description":3987,"org":3988,"tags":3989,"stars":23,"repoUrl":24,"updatedAt":4001},"actions-sdk-integration","integrate Optimism Actions SDK in TypeScript apps","Integrate the Optimism Actions SDK into a TypeScript application. Handles wallet provider setup (Privy, Turnkey, Dynamic), DeFi provider configuration (Morpho, Aave lending), chain and asset selection, and smart wallet creation. Use when the developer wants to add DeFi capabilities like lending, borrowing, swaps, or payments to their app.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3990,3993,3994,3997,4000],{"name":3991,"slug":3992,"type":16},"DeFi","defi",{"name":21,"slug":22,"type":16},{"name":3995,"slug":3996,"type":16},"SDK","sdk",{"name":3998,"slug":3999,"type":16},"TypeScript","typescript",{"name":18,"slug":19,"type":16},"2026-07-13T06:04:04.831067",{"items":4003,"total":127},[4004,4010],{"slug":4,"name":4,"fn":5,"description":6,"org":4005,"tags":4006,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4007,4008,4009],{"name":14,"slug":15,"type":16},{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"slug":3985,"name":3985,"fn":3986,"description":3987,"org":4011,"tags":4012,"stars":23,"repoUrl":24,"updatedAt":4001},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4013,4014,4015,4016,4017],{"name":3991,"slug":3992,"type":16},{"name":21,"slug":22,"type":16},{"name":3995,"slug":3996,"type":16},{"name":3998,"slug":3999,"type":16},{"name":18,"slug":19,"type":16}]