publicClient, walletClient, a Newton API key, and a policy pack set up as shown in Getting Started.
Idempotent Attach or Deploy
createShield predicts the deterministic clone address and either attaches to an existing compatible clone or deploys a new one.
Typed Morpho Call
Use the typed Morpho overlay for MetaMorpho manager actions.Generic sendCall
Use sendCall for a manager action without a first-class vendor helper.
sendCall, your app is responsible for matching the calldata, signature, target, and policy inputs.
Error Handling
Catch specific subclasses when retry behavior matters.PolicyDeniedError is not retry-safe without changing the action or accepting the denial. Gateway and timeout failures are usually retry-safe with a fresh task.
Read-Only Inspection
Anyone can inspect a Shield clone without holding the curator key.Multiple Chains
Create one pack and one Shield client per chain. The SDK reads the chain from eachwalletClient; there is no global chain singleton.
createShield throws UnsupportedChainError before sending a transaction.