0.3.10 • Published 6 years ago

@logosnetwork/logos-webwallet-sdk v0.3.10

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

logos-webwallet-sdk

Creates Logos wallets without full nodes

Installation

npm i @logosnetwork/logos-webwallet-sdk

Visual Demo

Demonstration

Classes Documentation

Quick Examples

Sending Logos

const SDK = require('@logosnetwork/logos-webwallet-sdk')
const wallet = new SDK.Wallet({
  password: 'password' // Make this strong
})
wallet.createAccount({
  privateKey: '34F0A37AAD20F4A260F0A5B3CB3D7FB50673212263E58A380BC10474BB039CE4'
}).then((account) => {
  account.createSendRequest([{
    destination: 'lgs_3mjbkiwijkbt3aqz8kzm5nmsfhtrbjwkmnyeqi1aoscc46t4xdnfdaunerr6',
    amount: '300000000000000000000000000000'
  }])
})

Creating a Token

const SDK = require('@logosnetwork/logos-webwallet-sdk')
const wallet = new SDK.Wallet({
  password: 'password' // Make this strong
})
wallet.createAccount({
  privateKey: '34F0A37AAD20F4A260F0A5B3CB3D7FB50673212263E58A380BC10474BB039CE4'
}).then((account) => {
  account.createTokenIssuanceRequest({
    name: `UnitTestCoin`,
    symbol: `UTC`,
    totalSupply: '1000',
    feeRate: '1',
    issuerInfo: '{"decimals":0,"website":"https://github.com/LogosNetwork/logos-webwallet-sdk"}',
    settings: {
      issuance: true,
      modify_issuance: true,
      revoke: true,
      modify_revoke: true,
      freeze: true,
      modify_freeze: true,
      adjust_fee: true,
      modify_adjust_fee: true,
      whitelist: false,
      modify_whitelist: true
    },
    controllers: [{
      account: 'lgs_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpiij4txtdo',
      privileges: {
        change_issuance: true,
        change_modify_issuance: true,
        change_revoke: true,
        change_modify_revoke: true,
        change_freeze: true,
        change_modify_freeze: true,
        change_adjust_fee: true,
        change_modify_adjust_fee: true,
        change_whitelist: true,
        change_modify_whitelist: true,
        issuance: true,
        revoke: true,
        freeze: true,
        adjust_fee: true,
        whitelist: true,
        update_issuer_info: true,
        update_controller: true,
        burn: true,
        distribute: true,
        withdraw_fee: true,
        withdraw_logos: true
      }
    }]
  })
})
0.3.10

6 years ago

0.3.9

6 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.19

6 years ago

0.2.18

6 years ago

0.2.17

6 years ago

0.2.16

6 years ago

0.2.15

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.30

6 years ago

0.1.29

6 years ago

0.1.28

6 years ago

0.1.27

6 years ago

0.1.26

6 years ago

0.1.25

6 years ago

0.1.24

6 years ago

0.1.23

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago