DREAMVFIA DREAMVFIA
首页 > 开发者工具 > 4-Byte 函数选择器 > 0x2f2ff15d
0x2f2ff15d AccessControl Role-Based Access

grantRole(bytes32,address)

以太坊 4 字节函数选择器 0x2f2ff15d (grantRole(bytes32,address)) 详细规范。归属标准:AccessControl,分类:Role-Based Access。提供 Solidity 接口代码、返回值类型、执行 Gas 估算与 Keccak-256 原生推导。

Solidity 接口声明

function grantRole(bytes32 role, address account) external

参数 ABI 编码与偏移量规范

#参数类型Calldata 偏移量编码规则
1bytes320x04 + 00ABI 32 字节字对齐补零
2address0x04 + 20ABI 32 字节字对齐补零

执行度量与 Keccak-256 原生推导

返回值类型: void
基准 Gas 预估: 28,000 ~ 55,000 gas
Keccak-256 (grantRole(bytes32,address)):
0x2f2ff15deca029b64bbc0874ae59c8f39be024a95aa718b4c13ca407db350be8
◆ 在反汇编器中模拟 ◆ 验证 Keccak-256 哈希 ← 返回完整选择器大厅