UnknownContract

Ancient8
Ancient8 Explorer
Code Snippets

getRoleAdmin

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: "0xE2C6b650aC01a3602FB074e3f078a81eD13cCfA8", method: "function getRoleAdmin(bytes32 role) view returns (bytes32)", params: [role] } ], chainId: 888888888 }) }); const data = await response.json();