For the complete documentation index, see llms.txt. This page is also available as Markdown.

Removed Functions

AI Agent SDK

3.2 Get transaction by address

Retrieve a list of transactions for the specified blockchain address from the Crypto.com developer platform within a specified block range.

  • Arguments

    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".
  • Example Query

    "Get transactions of <example-address> from block <example-start-block> to <example-end-block>"
  • Returns

    str: A formatted string containing the list of transactions.
  • Example Response

    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:
      ...

Example Code

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

Fetches transactions for a specific wallet address.

Note: Click to see how to get an explorer API key.

Function Name

  • Arguments

  • Example Code

  • Returns

  • Errors

  • Example Return

Function Name

  • Arguments

  • Example Code

  • Returns

  • Example Return

5.1 Get Contract ABI

Fetches the ABI (Application Binary Interface) of a smart contract.

Note: Click to see how to get an explorer API key.

Function Name

  • Arguments

  • Example Code

  • Returns

  • Errors

  • Example Return

Function Name

  • Arguments

  • Example Code

  • Returns

  • Errors

  • Example Return

Last updated

Was this helpful?