24.10.4 • Published 9 months ago

@nexajs/wallet v24.10.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

NEXA.js Wallet

Quickly and easily create a Nexa-compatible wallet to manage your "native" assets.

This is a FULLY-managed wallet offering the following features:

  • send & receive NEX
  • send & receive ALL "native" tokens

Auto-generated Wallet

import { Wallet } from '@nexajs/wallet'

const wallet = await Wallet.init()
// {
//   mnemonic: '<randomly generated 12-word seed phrase>',
//   path: `m/44'/29223'/0'`,
//   index: 0,
//   ...
//   updatedAt: 1234567890,
// }

const address = wallet.address
console.log(address)
// nexa:nqtsq5g59vw9p29wupxtnrff0u8ny2tn3j8n63j5akmsk58z

const balance = wallet.balance
console.log(balance)
// {
//   confirmed: 1337,
//   unconfirmed: 0,
// }

Mnemonic Wallet

import { Wallet } from '@nexajs/wallet'

const wallet = await Wallet.init('correct horse battery staple')
// {
//   mnemonic: 'correct horse battery staple',
//   path: `m/44'/29223'/0'`,
//   index: 0,
//   ...
//   updatedAt: 1234567890,
// }

const address = wallet.address
console.log(address)
// nexa:nqtsq5g59vw9p29wupxtnrff0u8ny2tn3j8n63j5akmsk58z

const balance = wallet.balance
console.log(balance)
// {
//   confirmed: 1337,
//   unconfirmed: 0,
// }

Entropy Wallet

import { Wallet } from '@nexajs/wallet'

const wallet = await Wallet.init(0xdeadbeef)
// {
//   mnemonic: null,
//   path: `m/44'/29223'/0'`,
//   index: 0,
//   ...
//   updatedAt: 1234567890,
// }

const address = wallet.address
console.log(address)
// nexa:nqtsq5g59vw9p29wupxtnrff0u8ny2tn3j8n63j5akmsk58z

const balance = wallet.balance
console.log(balance)
// {
//   confirmed: 1337,
//   unconfirmed: 0,
// }

Email + Password Wallet

import { Wallet } from '@nexajs/wallet'

const wallet = await Wallet.init('satoshi@bitcoin.org', 'Setec Astronomy')
// {
//   mnemonic: null,
//   path: `m/44'/29223'/0'`,
//   index: 0,
//   ...
//   updatedAt: 1234567890,
// }

const address = wallet.address
console.log(address)
// nexa:nqtsq5g59vw9p29wupxtnrff0u8ny2tn3j8n63j5akmsk58z

const balance = wallet.balance
console.log(balance)
// {
//   confirmed: 1337,
//   unconfirmed: 0,
// }
24.10.2

9 months ago

24.10.1

9 months ago

24.9.25

9 months ago

24.9.30

9 months ago

24.10.4

9 months ago

24.10.3

9 months ago

24.9.22

9 months ago

24.9.24

9 months ago

24.9.23

9 months ago

24.9.20

9 months ago

24.9.11

10 months ago

24.9.10

10 months ago

24.9.5

10 months ago

24.6.24

12 months ago

24.7.20

11 months ago

24.7.9

12 months ago

24.7.8

12 months ago

24.7.7

12 months ago

24.7.18

11 months ago

24.7.19

11 months ago

24.7.16

11 months ago

24.7.17

11 months ago

24.7.11

12 months ago

24.7.15

11 months ago

24.7.12

12 months ago

24.8.16

10 months ago

23.12.29

1 year ago

23.12.26

1 year ago

23.12.25

1 year ago

23.12.13

2 years ago

23.11.2

2 years ago

23.10.8

2 years ago

23.11.8

2 years ago

23.10.9

2 years ago

23.10.7

2 years ago

23.10.25

2 years ago

23.9.5

2 years ago

23.11.14

2 years ago

23.10.24

2 years ago

23.9.4

2 years ago

23.10.23

2 years ago

23.8.21

2 years ago

23.10.22

2 years ago

23.11.11

2 years ago

23.10.21

2 years ago

23.7.30

2 years ago

23.10.20

2 years ago

23.8.20

2 years ago

23.8.9

2 years ago

23.7.29

2 years ago

23.10.19

2 years ago

23.7.28

2 years ago

23.10.18

2 years ago

23.7.27

2 years ago

23.7.26

2 years ago

23.10.16

2 years ago

23.7.25

2 years ago

23.10.15

2 years ago

23.10.14

2 years ago

23.10.13

2 years ago

23.10.12

2 years ago

23.10.11

2 years ago

23.8.11

2 years ago

23.8.30

2 years ago

23.5.1

2 years ago

23.5.12

2 years ago

23.5.13

2 years ago

23.5.15

2 years ago

23.5.16

2 years ago

23.5.17

2 years ago

23.4.14

2 years ago

23.4.13

2 years ago

23.4.4

2 years ago