Contracts
Read on chain contract repositories.
Changed onUsing 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.
The function arguments of the contract, in string format. Accepts pla_, con_ and acc_ IDs.
Response
Successful response.
Changes
- info
the security scope
contracts:readwas added to the endpoint's security schemesk
- info