What is the ElizaOS plugin?
The@mandate.md/eliza-plugin package registers Mandate actions and providers with your ElizaOS agent runtime. It adds three actions (transfer, x402Pay, sendEth) and one provider (walletStateProvider) that gives the agent context about its wallet address and chain.
Installation
@elizaos/core is a peer dependency (>=0.1.0).
Usage
Environment variables
You can set these as environment variables or pass them through ElizaOS runtime settings via
runtime.getSetting().
Actions
Each action validates with the Mandate API, signs locally with the private key, and broadcasts. The private key never leaves the agent process.
Providers
Example output:
"Mandate wallet: 0x1234...abcd on chain 84532. Policy enforcement: active."
Error handling
Actions use ElizaOS callbacks to report errors. The handler returnsfalse on policy blocks and approval requirements, with a descriptive message in the callback.
content object in the callback gives your agent structured data to decide what to do next: retry later, reduce the amount, or prompt the user to approve in the dashboard.
Next Steps
Integrations Overview
Compare all supported agent frameworks and pick the right one.
Validate Transactions
Understand the full validation flow from preflight to confirmation.
Handle Errors
Catch and respond to every Mandate error type.