Revoke Authority
Introduction
Revoke Authority (revokeAuthority): Revokes a specific permission role from a given address.
Parameters
| Name | Type | Description |
|---|---|---|
| jsonrpc | string | Fixed value:2.0 |
| method | string | Method name. Fixed value: revokeAuthority |
| token | string | Token address |
| nonce | int | Nonce |
| recentCheckpoint | int | Block height |
| methodArgs | array | Dynamic contract arguments — Arg1: role name, Arg2: address to revoke |
| signature | object | Signature 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:
| Name | Type | Description |
|---|---|---|
| hash | string | Contract call hash |
Response Example:
{
"jsonrpc": "2.0",
"result": {
"hash": "0x..."
},
"id": 1
}Updated 3 months ago
