stellar_hd_wallet 0.0.1 copy "stellar_hd_wallet: ^0.0.1" to clipboard
stellar_hd_wallet: ^0.0.1 copied to clipboard

outdated

stellar hd wallet

stellar_hd_wallet #

Stellar HD Wallet

import #

pubspec.yaml

stellar_hd_wallet: ^0.0.1

example #

    import 'package:stellar_hd_wallet/stellar_hd_wallet.dart';

    void main(){
        // get random mnemonic ( english )
        final mnemonic = StellarHDWallet.generateMnemonic();
        print(mnemonic);
        final wallet = StellarHDWallet.fromMnemonic(mnemonic);
        final keypair = wallet.getKeyPair();
        // get accountId
        final accountId = keypair.accountId;
        final secretSeed = keypair.secretSeed;
        print(accountId);
        print(secretSeed);
        final keypairIndex1 = wallet.getKeyPair(index: 1);
        print(keypairIndex1.accountId);
        print(keypairIndex1.secretSeed);
    }

1
likes
30
pub points
0%
popularity

Publisher

unverified uploader

stellar hd wallet

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

bip39, pointycastle, stellar

More

Packages that depend on stellar_hd_wallet