interface Channel {
    active: boolean;
    amount: bigint;
    channel: `ch_${string}`;
    channelReserve: bigint;
    delegateIds: Record<string, unknown>;
    initiator: `ak_${string}`;
    initiatorAmount: bigint;
    lastUpdatedHeight: number;
    lastUpdatedTime: Date;
    lastUpdatedTxHash: `th_${string}`;
    lastUpdatedTxType: string;
    lockedUntil: number;
    lockPeriod: number;
    responder: `ak_${string}`;
    responderAmount: bigint;
    round: number;
    soloRound: number;
    stateHash: `st_${string}`;
    updatesCount: number;
}

Properties

active: boolean

Channel is active

amount: bigint

Balance currently left in the channel

channel: `ch_${string}`

Channel ID

channelReserve: bigint

Minimum amount for sufficient funds

delegateIds: Record<string, unknown>

Pubkeys of delegated accounts

initiator: `ak_${string}`

Channel initiator pubkey

initiatorAmount: bigint

Amount owned by initiator

lastUpdatedHeight: number

The last height in which the channel was updated on chain

lastUpdatedTime: Date

The block time in which the channel was last updated

lastUpdatedTxHash: `th_${string}`

The hash of the last transaction that updated the channel

lastUpdatedTxType: string

The transaction type of the last transaction that updated the channel

lockedUntil: number

Non-inclusive height until which the channel is locked

lockPeriod: number

Amount of heights locked after a solo closing

responder: `ak_${string}`

The channel responder pubkey

responderAmount: bigint

Amount owned by responder

round: number

Round after last transaction

soloRound: number

Round of last solo transaction

stateHash: `st_${string}`

The hash of the current channel state

updatesCount: number

The amount of times the channel's been updated by any of the channel transactions