Gateway

Get Contract Signatures

Retrieves human-readable ABI signatures for a specific smart contract. This endpoint fetches the contract metadata from the thirdweb service, extracts the ABI, and converts it into an array of human-readable function and event signatures that can be used directly with contract interaction methods.

Authentication: This endpoint requires backend authentication using the x-secret-key header. The secret key should never be exposed publicly.

Usage: The returned signatures can be used directly in contract read/write operations or event filtering. Each signature follows the standard Solidity format and includes function parameters, return types, state mutability, and event indexing information.

get/v1/contracts/{chainId}/{address}/signatures

Request

  • Base URL
    https://api.thirdweb.com
  • Auth
    API key in header x-secret-key

Path parameters

chainIdinteger required

The blockchain network identifier where the contract is deployed.

Example:1
addressstring required

The smart contract address or ENS name.

Response

Successfully retrieved contract signatures

resultstring[] required

Array of human-readable ABI signatures including functions and events. Each signature is formatted as a string that can be used directly in contract read/write operations or event filtering.

Changes

No recorded changes to this operation across all 5 revisions of this API.