Comments (6)
please make sure where is your smart-contract is deployed: mainnet or testnet?
from neb.py.
>>> from nebpysdk.src.client.Neb import Neb
>>> net = Neb('https://mainnet.nebulas.io')
>>> from wakuang/config import ConfigOne as conf
File "<stdin>", line 1
from wakuang/config import ConfigOne as conf
^
SyntaxError: invalid syntax
>>> from config import ConfigOne as conf
>>> net.url
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Neb' object has no attribute 'url'
>>> net
<nebpysdk.src.client.Neb.Neb object at 0x7f31071dd710>
>>> dir(net)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'admin', 'api', 'set_request']
>>>
>>> dir(net.api)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_api_version', '_host', '_path', 'call', 'create_url', 'estimateGas', 'gasPrice', 'getAccountState', 'getBlockByHash', 'getBlockByHeight', 'getDynasty', 'getEventsByHash', 'getNebState', 'getTransactionByContract', 'getTransactionReceipt', 'latestIrreversibleBlock', 'sendRawTransaction', 'send_request', 'set_request', 'subscribe']
>>> net.api._host
'https://testnet.nebulas.io'
from neb.py.
new version has solve this problem?
from neb.py.
also,,,,,chain_id == 1101 is invalid???
thanks .........
from neb.py.
i can't change chain_id
how to do it????
from neb.py.
For mainnet, chain_id = 1
For testnet, chain_id = 1001
from neb.py.
Related Issues (13)
- how to pass the args ,when i call function of smart contract? HOT 1
- the call function is incorrect HOT 1
- for Python3.7 requirement.txt(success)
- Address.py 中校验地址”校验和“部分代码是否存在逻辑Bug?
- 什么时候可以在 pypi 升级版本 0.4.4 ?
- Unnecessary line in Address.py
- can't run account HOT 3
- How to set endpoint to send transaction on mainnet? HOT 2
- I can see the txhash,but there is no recording in the testnet HOT 5
- setup.py introduces modules that old and never used HOT 2
- 'module' object has no attribute 'sha3_256' HOT 1
- could not install neb through pip install neb-py HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neb.py.