0xa457c2d7
decreaseAllowance(address,uint256)
以太坊 4 字节函数选择器 0xa457c2d7 (decreaseAllowance(address,uint256)) 详细规范。归属标准:ERC-20,分类:Fungible Token。提供 Solidity 接口代码、返回值类型、执行 Gas 估算与 Keccak-256 原生推导。
Solidity 接口声明
function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool)
参数 ABI 编码与偏移量规范
| # | 参数类型 | Calldata 偏移量 | 编码规则 |
|---|---|---|---|
| 1 | address | 0x04 + 00 | ABI 32 字节字对齐补零 |
| 2 | uint256 | 0x04 + 20 | ABI 32 字节字对齐补零 |
执行度量与 Keccak-256 原生推导
返回值类型: bool
基准 Gas 预估: 28,000 ~ 48,000 gas
Keccak-256 (decreaseAllowance(address,uint256)):
0xa457c2d77307f80ff2f3ac810ec99eb18ae2cffee13b29c90c9324546e374be5