Grant Authority
Introduction
Grant Authority (grantAuthority): Grant a specific permission role to an address.
Parameters
Request Parameters:
Parameter Name | Type | Description |
|---|---|---|
jsonrpc | string | Fixed value: |
method | string | Method name. Fixed value: |
token | string | Token address |
nonce | int | Nonce |
recentCheckpoint | int | Block height |
methodArgs | array | Dynamic contract parameters: |
signature | object | Signature result |
Request Example:
{
"jsonrpc": "2.0",
"method": "grantAuthority",
"params": {
"nonce": 3,
"token": "0x...",
"methodArgs": [
"MINT_ROLE", //Authorization permissions
"0x1234567890123456789012345678901234567890" //Authorized hash
],
"recentCheckpoint": 12348,
"signature": {
"r": "string",
"s": "string",
"v": "string"
}
},
"id": 1
}Response Parameters:
| Parameter Name | Type | Description |
|---|---|---|
| hash | string | Transaction hash |
Response Example:
{
"jsonrpc": "2.0",
"result": {
"hash": "0x..."
},
"id": 1
}Updated 3 months ago
