1Shot API icon

1Shot API

Interact with EVM blockchains via 1Shot API

Contract Method → List

AI-generated

Overview

This node operation lists contract methods from the 1Shot API based on various filter criteria. It is useful for retrieving a paginated list of contract methods filtered by name, contract address, prompt ID, method type, and blockchain chain ID. This can help users explore available contract methods for smart contracts on different EVM blockchains.

Use Case Examples

  1. List all contract methods on a specific blockchain chain with pagination.
  2. Filter contract methods by name or contract address to find specific methods.
  3. Retrieve contract methods associated with a particular prompt ID or method type (read/write).

Properties

Name Meaning
Name Filter contract methods by their name.
Contract Address Filter contract methods by the address of the contract they belong to.
Prompt ID Filter contract methods by the associated prompt ID.
Method Type Filter contract methods by their type, such as read or write.
Chain Name or ID Filter contract methods by blockchain chain name or ID, selectable from a list or specified via expression.
Page Number Specify the page number of results to retrieve, starting at 1.
Page Size Specify the number of contract methods to retrieve per page.

Output

JSON

  • json - Each item represents a contract method matching the filter criteria, including details such as method name, type, contract address, and other metadata.

Dependencies

  • Requires an OAuth2 API credential for 1Shot API access.

Troubleshooting

  • Ensure the OAuth2 API credential is correctly configured and authorized to access the 1Shot API.
  • Verify that the chain ID or name used for filtering is valid and supported by the 1Shot API.
  • Check pagination parameters (page number and page size) to avoid requesting out-of-range pages.
  • If no contract methods are returned, try broadening filter criteria or verifying the contract address and prompt ID values.

Discussion