Beispiel #1
0
    def test_initialise_from_random_mnemonic(self, env):
        wallet = Wallet.create_random_wallet(env=env)

        assert wallet
        assert wallet.private_key is not None
        assert wallet.public_key is not None
        assert wallet.public_key_hex is not None
        assert wallet.address is not None
Beispiel #2
0
def make_binance_wallet():
    wallet = Wallet.create_random_wallet(env=testnet_env)
    print(wallet.address)
    print(wallet.private_key)
    print(wallet.public_key_hex)
    return wallet.address
Beispiel #3
0
 def create_bnb_wallet(self) -> Wallet:
     """generate Mnemonic --> wallet"""
     w = Wallet.create_random_wallet(env=self.env)
     print(w.address)
     print(w.private_key)
     return w