Create and Fund Your First Agent
An end-to-end guide on creating a new AI agent wallet, waiting for on-chain registration, and funding it with OKRW.
What You Will Learn
- ✓How to create an agent using the MCP tool.
- ✓How to check the agent's status.
- ✓How to transfer funds from the owner to the agent.
Prerequisites
- Authenticated via `m-aws login`.
- Owner wallet must have some OKRW balance.
Tools Needed
MCP Client (e.g., Claude Desktop)m-aws CLI
In this tutorial, you will instruct your AI agent to create a new sub-agent wallet, verify its activation, and fund it so it can operate autonomously.
1
1. Create the Agent
First, ask your LLM to create a new agent. The LLM will call
agent.create. agent.create json
{
"name": "MyFirstAgent"
} Note: The agent starts in a `PENDING` state. It takes 1-3 minutes for the WaaS backend to register the AA wallet on the Maroo chain.
2
2. Check Agent Status
Wait a few minutes, then have the LLM check if the agent is ready using
agent.detail. agent.detail json
{
"agentId": "<returned-agent-id>"
} 3
3. Fund the Agent
Once the status is
ACTIVE, the agent can receive funds. Use agent.fund to send OKRW from your main owner wallet to the agent. agent.fund json
{
"agentId": "<returned-agent-id>",
"amount": "10"
} Conclusion
Your agent is now ACTIVE and funded with 10 OKRW. It can now use
transfer.send to interact with the Maroo network autonomously.