vechain / connex

The mono-repo contains libraries to help build dApps for VeChain.
https://docs.vechain.org/developer-resources/sdks-and-providers/connex
GNU Lesser General Public License v3.0
85 stars 3.6k forks source link

add thor class for standalone reading #149

Closed libotony closed 1 year ago

libotony commented 1 year ago

This PR is on top of #148, adds Connex.Thor class for the below usage:

const thor = new Connex.Thor({node: 'https://...', network: 'main'})
// .... some reading options
const vendor = new Connex.Vendor(...)
vendor.sign('tx', ...)

In some cases of dApps, they need to show data before asking the user to choose a wallet.