@statechannels/server-wallet > Wallet

Wallet class

Signature:

export declare class Wallet extends EventEmitter<WalletEvents>

Extends: EventEmitter<WalletEvents>

Properties

PropertyModifiersTypeDescription
messageServiceMessageServiceInterface

Methods

MethodModifiersDescription
approveObjectives(objectiveIds)Approves an objective that has been proposed by another participant. Once the objective has been approved progress can be made to completing the objective.
closeChannels(channelIds)Closes the specified channels
create(incomingConfig, messageServiceFactory)staticConstructs a channel manager that will ensure objectives get accomplished by resending messages if needed.
createChannels(channelParameters)Creates channels using the given parameters.
createLedgerChannel(channelParams)Creates a ledger channel
destroy()
getChannels()
getSigningAddress()
jumpStartObjectives()Finds any approved objectives and attempts to make progress on them. This is useful for restarting progress after a restart or crash.
registerAppDefinition(appDefinition)Pulls and stores the ForceMoveApp definition bytecode at the supplied blockchain address.
registerPeerMessageService(peerUrl)Registers a peer with the message service so messages can be sent to the peer.
updateChannel(channelId, allocations, appData)Updates a channel with the given allocations and app data.