ContractRoles

Handle contract permissions

Configure roles and permissions for a contract, to restrict certain actions.

Example

const contract = await sdk.getContract("{{contract_address}}");
const rolesAndMembers = await contract.roles.getAll();
await contract.roles.grantRole("admin", "0x...");

Methods

Properties