READY

On a READY event, the callback will fire with a single argument with information about the wallet provider. At any time a READY event listener is added, it will immidiately be called if the provider is already in a ready state. This provides a single flow for dapp developers since this listener should start any and all interactions with the dapi protocol.

ParameterDescription

name: string

The name of the wallet provider

website: string

The website of the wallet provider

version: string

The version of the dAPI that the the wallet supports

compatibility: string[]

A list of all applicable NEPs which the wallet provider supports

extra: object

Provider specific attributes

Example

window.addEventListener('NEOLine.NEO.EVENT.READY', () => {
    console.log('dAPI common method loading is complete.');
});

最后更新于