合约接口

付币合约的核心接口说明。

合约类型

合约
网络
说明

BlockATMEthPayout

Ethereum/Arbitrum

ETH 系代币付币合约

BlockATMTronPayout

TRON

TRX/TRC20 代币付币合约

核心接口

payoutWithBalance()

使用合约余额进行付币。

function payoutWithBalance(
    address token,           // 代币地址
    address to,              // 收款地址(需在白名单)
    uint256 amount,          // 付币金额
    uint256 fee,            // 手续费
    bytes memory signature,  // 签名
    uint256 nonce,          // 随机数
    uint256 timestamp       // 时间戳
) external onlyPacker returns (bool)
circle-info

白名单要求:余额支付方式,收款地址必须在白名单中。

payoutWithAllowance() — V5.8.0

使用授权额度进行付币。

circle-exclamation

事件

BatchPayoutWithBalance

BatchPayoutWithAllowance — V5.8.0

权限控制

函数
权限要求

payoutWithBalance()

仅 Packer 角色

payoutWithAllowance()

仅 Packer 角色

V5.8.0 合约变更

变更项
说明

构造函数

移除 newColdWalletAddress 参数

方法签名

增加 from 参数

白名单

授权支付不强制白名单

下一步

Last updated