> For the complete documentation index, see [llms.txt](https://tutorial.neoline.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorial.neoline.io/reference/neo2-provider-api.md).

# 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.

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

```
