Collection of useful account functions for Syscoin multi-chain.
Here, you'll find methods that help you to handle wallet, address, accounts, transactions and trezor wallet.
Furthermore, our motivation to build these solutions is:
- centralize and support sys and web3 functions related to account
- facilitate the dapp development
- build a helpful, single, maintained and stable library
For use this library, is nice to have:
For install, you can follow these commands:
yarn add @pollum-io/sysweb3-keyring
npm install @pollum-io/sysweb3-keyring
The sysweb3-keyring was builded to have a really simple usability. For example, you can import package and console it to know what kind of functions you'll find:
import sysweb3 from '@pollum-io/sysweb3-keyring';
console.log(sysweb3);
{
Web3Accounts: function () {},
SyscoinAddress: function () {},
initialize: function () {},
TrezorTransactions: function () {},
...
}
Inside of source folder, you'll find some others folders like:
-
accounts
: this folder have theeth-accounts
file. There, you'll be able to use all the web3 functions related to web3 account, likegetBalance
andgetTokens
,sendTransaction
-
address
: this folder have thesyscoin
file. There, you'll be able to use all the sys functions related to sys account, likegetValidAddress
andgetChangeAddress
-
transactions
: this folder have thesyscoin
file. There, you'll be able to use all the sys functions related to sys transactions, likeconfirmTokenCreation
andsignTransaction
-
trezor
: this folder have theinit
,transactions
andwallet
files. There, you'll be able to use all the sys functions related to trezor wallet, likeinitialize
,TrezorTransactions
andTrezorWallet
-
wallets
: this folder have themain
file. There, you'll be able to use all the sys functions related to wallet, likegetAccountXpub
andcreateWallet
MIT License