Contracts

Read on chain contract repositories.

Changed on

Using this endpoint, you can get the repositories returned by any readable function listed in a contracts ABI. This could be things like querying the totalSupply of a currency contract, the number of owners of an items contract, and more.

get/v1/contracts/{id}/read

Request

  • Base URL: https://api.openfort.io
  • URL: https://api.openfort.io/v1/contracts/{id}/read
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring required

Specifies the unique contract ID (starts with con_).

Query parameters

functionNamestring required

The function name of the contract.

unknown

The function arguments of the contract, in string format. Accepts pla_, con_ and acc_ IDs.

Response

Successful response.

idstring required
object'readContract' required
createdAtinteger required
functionNamestring required
resultunknown required

Changes