Open lvshuang opened 5 years ago
Because if you use default node, you should set Mainnet node address in DEFAULT_NODE of setting.py For example, modify the Line 32 in setting.py
DEFAULT_NODE = 'https://wallet.vee.tech/api'
And
chain = chain = pv.default_chain()
should change to
chain = pv.default_chain()
Because if you use default node, you should set Mainnet node address in DEFAULT_NODE of setting.py For example, modify the Line 32 in setting.py
DEFAULT_NODE = 'https://wallet.vee.tech/api'
And
chain = chain = pv.default_chain()
should change to
chain = pv.default_chain()
If want't use myself node, how to set this! And I install the sdk from pip, not source
You could modify the code like this:
node = pv.create_api_wrapper('https://wallet.vee.tech/api', api_key='')
chain = pv.Chain(chain_name='mainnet', chain_id='M', address_version=5, api_wrapper=node)
accountGenaretor = Account(chain=chain)
account = accountGenaretor.get_info()
Env
code
return