Skip to main content

build_open_and_close

Function build_open_and_close 

Source
pub(super) fn build_open_and_close(
    channel_address: Address,
    payer: Address,
    token: Address,
    salt: B256,
    channel_id: B256,
) -> TempoTransactionRequest
Expand description

Build a TempoTransactionRequest with two calls: channel open + close.

The signer is both payer and payee, so close succeeds immediately.