records

view

Use this function in your app

const response = await fetch('https://api.thirdweb.com/v1/contracts/read', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-secret-key': '<YOUR_SECRET_KEY>' }, body: JSON.stringify({ calls: [ { contractAddress: "0x472162F642eD35FF98E0267A6380994D362BAf5d", method: "function records(address) view returns (string)", params: [] } ], chainId: 97 }) }); const data = await response.json();