Extends

ExtensionConnector


Constructor

constructor(extension)

Parameter

extension - ScatterExtension


Property

extension

Type: ScatterExtension
Description: Scatter wrapper instance passed by constructor.


Methods

async link()

Description

Connect user to the Scatter. This method will call out Scatter if user are not connected to it. This is useful when Scatter is not logged in.

Returns :

Promise<Result<String, Status>>:

Selected account in Scatter will be set into the data field of Result if link successfully.

async unlink()

Description

Disconnect user and Scatter.

Returns :

Promise<Result<Bool, Status>>:

Boolean value true will be set into the data field of Result if unlink successfully.