Removed Functions
AI Agent SDK
3.2 Get transaction by address
address (str): The blockchain address to query (CronosIds with the `.cro` suffix are supported). startBlock (int): The starting block number to get transactions from. The maximum range is 10,000 blocks. endBlock (int): The ending block number to get transactions to. The maximum range is 10,000 blocks. session (str, optional): Session identifier for pagination. Defaults to "". limit (str, optional): Maximum number of transactions to return. Defaults to "20"."Get transactions of <example-address> from block <example-start-block> to <example-end-block>"
str: A formatted string containing the list of transactions.The transactions for the address <example-address> are: * Transaction 1: - Block Number: <example-block-number> - Transaction Hash: <example-transaction-hash> - Status: <example-status> - From: <example-from> - To: <example-to> - Value: <example-value> * Transaction 2: ...
from crypto_com_agent_client import Agent
agent = Agent.init(
llm_config={
"provider": "OpenAI",
"model": "gpt-4",
"provider-api-key": "sk-proj-example-key",
"temperature": "float-controlling-output-randomness",
},
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("Get transactions of <example-address> from block <example-start-block> to <example-end-block>")
print(response)Developer Platform Client SDK
3.1 Get Transactions By Address
5.1 Get Contract ABI
Last updated
Was this helpful?