R
R
RediskaTheFox2021-08-02 03:00:48
Python
RediskaTheFox, 2021-08-02 03:00:48

Is the output None even though it shouldn't be there?

Briefly, this is the code:

from bitcoinlib.wallets import Wallet

def o():
    w = Wallet.create(Name, keys=passphrase, network='bitcoin')
    pipo = w.info()
    print(pipo)
o()


Print(pipo) prints none. Through return I tried, it did not work. I need it to store information in "pipo" for later use.
UPD: Name, passphrase have been created, it's just a stripped down version of the code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2021-08-02
@RediskaTheFox

I looked at the info method in Wallet
https://github.com/1200wd/bitcoinlib/blob/master/b... and
didn't find it to return anything....
There's just output of information via print to the console, and that's it.
If necessary - inherit from Wallet - yes, add / rewrite the info method at your discretion...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question