> For the complete documentation index, see [llms.txt](https://evmlinks.gitbook.io/aptoslink/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://evmlinks.gitbook.io/aptoslink/dev/get-start.md).

# Get Start

How to use aptoslink npm

## How to use aptoslink

```bash
npm install @AptosLink/api
```

Import Instructions

```js
import { Aptoslink } from '@aptoslink';
```

Create a Aptoslink with encryption

```js
return AptosLink.create("/","http://localhost:8080/","Happy Birthday !",true,"").then((aptoslink: AptosLink) => {
});
```

Create a Aptoslink without encryption

```js
test("returns valid AptosLink", () => {
  return AptosLink.create("/","http://localhost:8080/","Happy Birthday !",false,"").then((aptoslink: AptosLink) => {
  });
})
```

Decode the link and withdraws the money from wallet | transfer money from wallet

```js
return AptosLink.fromLink('http://localhost:8080/MHhhODY5ODZhOWRmODAyYzc5NTAwMmI4Njg4YWM4ZmRlMGQzOTJlMWUyMzE0NjQ5MTIxMzRlNjFmYzYwNGM4YzJl/SGFwcHkgQmlydGhkYXkgIQ==/').then(async (aptoslink: AptosLink) => {
  console.log(aptoslink.keypair.privateKey.toString())
  await AptosLink.transfer(aptoslink,"testnet",100000,'0x5a6a33557e4ed68ad4f78dc71a2fdbc5e07b18530074c1b43078ebe45d305cfd')
});
```
