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
function getRoleHash(role: RoleInput): `0x${string}`;

Parameters

string

Type

let role: RoleInput;

Returns

let returnType: `0x${string}`;

hex value of the contract role