Fetch.ai has recently launched ASI-1 Mini, a Web3-native LLM designed for complex, autonomous workflows.

Try nowopen-new-tab-icon
article_icon
article

Microagents - Agents Addresses

A guide helping you understand how to retrieve and use microagents' addresses.

2023-06-210 min readjosh

Welcome. In this tutorial I will show you how to retrieve addresses related to your microagent. First of all, let's create a script named agent_addresses.py.

You can print your microagent's addresses in the following way:

code-icon
code-icon
from uagents import Agent

alice = Agent(name="alice")

print("uAgent address: ", alice.address)
print("Fetch network address: ", alice.wallet.address())

As it is possible to notice, our microagent will have two types of addresses:

  • a microagent address: this is the main microagent identifier. Other microagents can use this to query the agent's information in the Almanac contract.

  • a Fetch address: this provides the agent with the capabilities for interacting with the Fetch ledger such as registering in the Almanac contract.

Save your script and go on your terminal. Run the script.

code-icon
code-icon
python agent_addresses.py

The terminal output would be:


More from Fetch