Function FlashAPI.requestCloseSig

Requests a closing signature for an established channel and a previously agreed-upon closeChannel request with the given sequence ID.

abstract Result!(agora.script.Signature.SigPair) requestCloseSig (
  PublicKey sender_pk,
  PublicKey recv_pk,
  geod24.bitblob.BitBlob!(64L) chan_id,
  uint seq_id
) @safe;

Parameters

NameDescription
sender_pk the sender public key as managed by the counter-party. (note: will be used for signature authentication later)
recv_pk the receiving public key. If the receiving flash node does not manage this key it will return an error.
chan_id A previously open channel ID
seq_id the agreed-upon sequence ID in a previous closeChannel call

Returns

the signature for the closing transaction, or an error code with an optional error message.