Neo2 provider API

The NeoLine extension wallet injects an Neo Legacy provider into the browser at window.NEOLine.

You can use this provider in your dapp to request users' Neo Legacy accounts, read on-chain data, and have the user sign messages and transactions.

window.addEventListener('NEOLine.NEO.EVENT.READY', () => {
  const neoline = new NEOLine.Init();
  neoline.getAccount()
  .then(account => console.log(account))
});

最后更新于