CronosID Operations
5.1 Resolve CronosId name
name (str): The CronosId name to resolve (e.g., "xyz.cro")."Resolve CronosId name <example-cronos-id>"
str: A formatted string containing the resolved blockchain address.The CronosId name <example-cronos-id> has been successfully resolved to the blockchain address: <example-address>.
from crypto_com_agent_client import Agent
agent = Agent.init(
llm_config={
"provider": "OpenAI",
"model": "gpt-4o-mini",
"temperature": 1,
"provider-api-key": "sk-proj-example-key",
"transfer-limit": -1, # -1 means no limit (unlimited), 0 disables transfers completely, any positive number (e.g. 5) allows exactly that transfer amount
},
blockchain_config={
"api-key": "your-crypto.com-developer-platform-api-key",
"private-key": "your-private-key",
"sso-wallet-url": "your-sso-wallet-url",
"timeout": "timeout-in-seconds-for-API-calls-default-20s")
},
)
response = agent.interact("Resolve CronosId name <example-cronos-id>")
print(response)
5.2 Lookup CronosId address
Last updated
Was this helpful?