Comments (18)
How about the object directly returned by new Framework(...)
? Seems the object was JSON encoded/decoded.
from connex.
kindly explain it clearly, I used this Driver.
code :- // NodeJs Driver
import { Framework } from '@vechain/connex-framework'
import { Driver, SimpleNet, SimpleWallet, options } from '@vechain/connex.driver-nodejs'
const wallet = new SimpleWallet()
const driver = await Driver.connect(new SimpleNet('http://localhost:8669/'), wallet)
const connex = new Framework(driver)
// here I get the connex object.
what was the problem in these. kindly explain clearly to me.
from connex.
the Connex object got here should be fully functional. just try
connex.thor.block('best').then(b => console.log(b))
from connex.
yeah it is working, connex.thor.account and connex.thor.block which are all working fine. but I didn't get any object in the connex. which displays only the genesis and status at here.
const connex = new Framework(driver)
// here I get the connex object.
from connex.
What does 'displays' mean here?
from connex.
It returns the object { connex version, connex.thor ('genesis', 'status') }
I need 'ticker', 'account', 'block', 'transaction', 'filter', and 'explain' these things in the connex object.
from connex.
They're there, a you said you can access 'connex.thor.account and connex.thor.block which are all working fine'
from connex.
yeah the functionality is working but I didn't receive that key in connex framework object.
It displays the only two keys in the object code [ "const connex = new Framework(driver)"] // here I get the connex object.I attached the image below.
I need the rest off keys 'ticker', 'account', 'block', 'transaction', 'filter', and 'explain' in the connex object
from connex.
the object must have been transformed with JSON.stringify and JSON.parse. then, functions will be all ignored.
from connex.
If it possible to fetch the remaining keys 'ticker', 'account', 'block', 'transaction', 'filter', and 'explain' in that connex object. Any possible ways to fetch it
from connex.
No. You can't remotely fetch a function.
from connex.
Then how I fetch it from connex Framework.Kindly help me
from connex.
how about placing the Framework creation code to where using it?
from connex.
To use in the server side object,
Framework creation code is
import { Framework } from '@vechain/connex-framework'
import { Driver, SimpleNet, SimpleWallet, options } from '@vechain/connex.driver-nodejs'
const wallet = new SimpleWallet()
const driver = await Driver.connect(new SimpleNet('http://localhost:8669/'), wallet)
const connex = new Framework(driver)
// connex --- here I get the connex object.
from connex.
I mean put the code at the place where using connex, e.g. client/browser side.
from connex.
Hi team,
Okay Now I need to access the connex package from client/browser side.Is there any possible ways to use in client side.kindly help me.
from connex.
I used the connex Driver package in NodeJs . so now how I used that in client/browser side. Kindly help me to integrate.
from connex.
I find the way to built in client side, thanks !
from connex.
Related Issues (20)
- Getting last block fails HOT 6
- ES2018 Update for implement? ts
- Error: get blocks/0: connect ECONNREFUSED 127.0.0.1:8669 HOT 1
- Connex Vendor does not work properly HOT 16
- VechainThor wallet wrong password and re-entered HOT 3
- How to fetch events in the order that they were emitted from a specific Smart Contract? HOT 1
- How to get the number of events emitted in the specific SC? HOT 1
- Connex not loaded via HTML Script Tag HOT 3
- Hostname/IP does not match certificate's altnames HOT 11
- Add encryption service (encrypt/decrypt) to connex + Sync2
- ReferenceError: self is not defined HOT 2
- index.d.ts' is not a module HOT 14
- TypeScript 'require' and 'exports' not defined HOT 2
- Vechain Connex Integration HOT 4
- Vechain Network Connex HOT 1
- Vechain connex integration HOT 1
- Acquire a signing service opens up Comet HOT 6
- [ABIEncoderV2] Tuple input not working HOT 5
- Ticker only returns gasLimit HOT 2
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 connex.