Docs

getRoleHash

Get a hex value of a smart contract role You need the hex value to interact with the smart contracts.

Example

const adminRoleHash = getRoleHash("admin"); // 0x0000000...000000

Parameters

Returns

hex value of the contract role