Read contract
Endpoint that allows you to read contract functions
Read a contract
POST
https://api-wallet.venly.io/api/contracts/read
Request Body
Name | Type | Description |
---|---|---|
inputs.type | string | Type of the input parameter (ex. uint256) |
inputs.value | string | Value of the input parameter. This needs to be passed as a string value |
inputs | array | Array of inputs needed to call the function |
functionName | string | Contract function to call |
secretType* | string | On which blockchain the tx will be executed |
walletAddress | string | Wallet address, available if required |
outputs* | String | Array of expected outputs |
outputs.type* | String | Type of output |
This function is only available for EVM-based chains: Ethereum
, Polygon
, Avalanche
and Binance Smart Chain
Examples
Get Balance of
This example will get the balance of a certain NFT for a specific wallet
Request Body
Response
Get Mint Number
This example will get the mint number for a specific NFT.
Request Body
Response
Get Contract URI
This example will fetch the contract URI, which contains the metadata, for a specific contract.
Request Body
Response
Last updated