thirdweb

UnknownContract

Vanar
Vanar Explorer

Get Role Admin

(getRoleAdmin)

view

role


Use this function in your app


import { readContract } from "thirdweb"; const data = await readContract({ contract, method: "function getRoleAdmin(bytes32 role) view returns (bytes32)", params: [role] })