Channel.getVoucherSignPayload
Computes the EIP-712 sign payload for a TIP-20 channel voucher.
Mirrors getVoucherDigest on the TIP-20 channel reserve precompile without performing an RPC call.
Imports
Named
import { Channel } from 'ox/tempo'Examples
import { Channel } from 'ox/tempo'
const payload = Channel.getVoucherSignPayload({
chainId: 4217,
channelId: '0x0000000000000000000000000000000000000000000000000000000000000000',
cumulativeAmount: 1n,
})Definition
function getVoucherSignPayload(
value: getVoucherSignPayload.Value,
): Hex.HexSource: src/tempo/Channel.ts
Parameters
value
- Type:
getVoucherSignPayload.Value
Voucher fields and chain id.
value.chainId
- Type:
number | bigint
Chain id used by the channel reserve precompile.
value.channelId
- Type:
0x${string}
Channel id.
value.cumulativeAmount
- Type:
bigint
Total voucher amount signed for the channel.
Return Type
The voucher sign payload.
Hex.Hex

