Javascript API for Bitcoin TREZOR.
Use this library if you want deeper integration of TREZOR into your node app, including electron.
If you are including the library in web app, try trezor.js
package.
npm install --save trezor.js-node
We are dependent (through trezor-link) on node-hid
, which is compiled C++ package. If there is some problems, just write us an issue.
Example of usage is on example-browser/
on github.
trezor.js is annotated with Flow types; if you want to use Flow and use the previous setup, it will use the right types. Note that you might have to set up .flowconfig
to include all the modules and interface files in our flowconfig
In a node app, trezor.js will first try to contact trezord (see above). If the trezord daemon isn't installed or is not accessible for some reason, trezor.js will use node-hid layer and the app will communicate with TREZOR directly.
API is explained in API.md