interface CommonChannelOptions {
    channelReserve?: number | BigNumber;
    debug?: boolean;
    existingChannelId?: `ch_${string}`;
    existingFsmId?: `ba_${string}`;
    fee?: number | BigNumber;
    gasPrice?: number | BigNumber;
    initiatorAmount: number | BigNumber;
    initiatorId: `ak_${string}`;
    lockPeriod: number;
    minimumDepth?: number;
    minimumDepthStrategy?: "txfee" | "plain";
    port: number;
    pushAmount: number | BigNumber;
    reestablish?: boolean;
    responderAmount: number | BigNumber;
    responderId: `ak_${string}`;
    sign: SignTxWithTag;
    signedTx?: `tx_${string}`;
    timeoutAccept?: number;
    timeoutAwaitingOpen?: number;
    timeoutFundingCreate?: number;
    timeoutFundingLock?: number;
    timeoutFundingSign?: number;
    timeoutIdle?: number;
    timeoutInitialized?: number;
    timeoutSign?: number;
    ttl?: number;
    url: string;
}

Properties

channelReserve?: number | BigNumber

The minimum amount both peers need to maintain

debug?: boolean

Log websocket communication and state changes

existingChannelId?: `ch_${string}`

Existing channel id (required if reestablishing a channel)

existingFsmId?: `ba_${string}`

Existing FSM id (required if reestablishing a channel)

fee?: number | BigNumber

The fee to be used for the channel open transaction

gasPrice?: number | BigNumber

Used for the fee computation of the channel open transaction

initiatorAmount: number | BigNumber

Amount of coins the initiator has committed to the channel

initiatorId: `ak_${string}`

Initiator's public key

lockPeriod: number

Amount of blocks for disputing a solo close

minimumDepth?: number

The minimum amount of blocks to be mined

minimumDepthStrategy?: "txfee" | "plain"

How to calculate minimum depth (default: txfee)

port: number

The port of the responder's node

pushAmount: number | BigNumber

Initial deposit in favour of the responder by the initiator

reestablish?: boolean

Needs to be provided if reconnecting with calling leave before

responderAmount: number | BigNumber

Amount of coins the responder has committed to the channel

responderId: `ak_${string}`

Responder's public key

Function which verifies and signs transactions

signedTx?: `tx_${string}`
timeoutAccept?: number

The time frame the other client has to react to an event. This applies for all off-chain updates that are not meant to land on-chain, as well as some special cases: opening a noise connection, mutual closing acknowledgement and reestablishing an existing channel (default: 120000)

timeoutAwaitingOpen?: number

The time frame the initiator has to start an outgoing noise session to the responder's node. Applicable only for responder (default: timeout_idle's value)

timeoutFundingCreate?: number

The time waiting for the initiator to produce the create channel transaction after the noise session had been established (default: 120000)

timeoutFundingLock?: number

The time frame the other client has to confirm an on-chain transaction reaching maturity (passing minimum depth) after the local node has detected this. This applies only for double signed on-chain intended updates: channel create transaction, deposit, withdrawal and etc. (default: 360000)

timeoutFundingSign?: number

The time frame the other client has to sign an off-chain update after our client had initiated and signed it. This applies only for double signed on-chain intended updates: channel create transaction, deposit, withdrawal and etc. (default: 120000)

timeoutIdle?: number

The time waiting for a new event to be initiated (default: 600000)

timeoutInitialized?: number

the time frame the responder has to accept an incoming noise session. Applicable only for initiator (default: timeout_accept's value)

timeoutSign?: number

The time frame the client has to return a signed off-chain update or to decline it. This applies for all off-chain updates (default: 500000)

ttl?: number

Minimum block height to include the channel_create_tx

url: string

Channel url (for example: "ws://localhost:3001")