Revoke Authority

Introduction

Revoke Authority (revokeAuthority): Revokes a specific permission role from a given address.

Parameters

NameTypeDescription
jsonrpcstringFixed value:2.0
methodstringMethod name. Fixed value: revokeAuthority
tokenstringToken address
nonceintNonce
recentCheckpointintBlock height
methodArgsarrayDynamic contract arguments — Arg1: role name, Arg2: address to revoke
signatureobjectSignature result

Request Example:

{
  "jsonrpc": "2.0",
  "method": "revokeAuthority",
  "params": {
    "nonce": 4,
    "token": "0x...",
    "methodArgs": [
      "MINT_ROLE",
      "0x1234567890123456789012345678901234567890"
    ],
    "recentCheckpoint": 12349,
    "signature": {
      "r": "string",
      "s": "string",
      "v": "string"
    }
  },
  "id": 1
}

Response Parameters:

NameTypeDescription
hashstringContract call hash

Response Example:

{
  "jsonrpc": "2.0",
  "result": {
    "hash": "0x..."
  },
  "id": 1
}