OptionaladdressesPer-contract address overrides (also enables an unsupported chainId).
OptionalconstantsHow long a cached read of the governable constants stays usable, in milliseconds.
Defaults to DEFAULT_CONSTANTS_TTL_MS (60 seconds). 0 re-reads every time
(MK-012).
OptionalgasPercent added to the gas estimate on every write, over 100. Defaults to DEFAULT_GAS_MARGIN_PERCENT (25), which is a measured number, not a convention: see its docstring for the per path spread it was sized against (MK-035).
0 sends the bare estimate, which is what the SDK did before and is what produced the
reverts MK-035 records. Raise it if you send during periods where the chain moves fast
between your estimate and your inclusion.
Unused gas is refunded, so a larger margin costs no fees. What it does cost is the
native balance that must be AVAILABLE: the account must hold gasLimit * gasPrice + value or the send is rejected before it reaches the chain.
OptionalwalletRequired for the write methods, which throw MissingWalletClient without one; reads use publicClient.
Inputs to createMusdClient: the chain, a viem public client, and (for writes) a wallet client;
addressesoverrides the bundled deployment.