indy-vdr-test-nodejs
v0.2.13
Published
Nodejs wrapper for Indy Vdr
Downloads
7
Readme
indy-vdr-test-nodejs
Wrapper for Nodejs around indy-vdr
Requirements
This has been tested extensively with Nodejs version 16.11.0
and 16.15.0
.
Older and newer versions might also work, but they have not been tested.
Installation
yarn add indy-vdr-test-nodejs
Usage
You can import all types and classes from the indy-vdr-test-nodejs
library:
import { PoolCreate, GetSchemaRequest } from 'indy-vdr-test-nodejs'
const pool = new PoolCreate({
parameters: {
transactions: <TRANSACTION_OBJECT>
}
})
const getSchemaRequest = new GetSchemaRequest({
schemaId: 'J6nTnUo3YLayzc2GUUctb1:2:MyName:1.0',
})
const schemaResponse = await pool.submitRequest(getSchemaRequest)
Note: If you want to use this library in a cross-platform environment you need to import methods from the
indy-vdr-test-shared
package instead. This is a platform independent package that allows to register the native bindings. Theindy-vdr-test-react-native
package uses this package under the hood. See the Indy VDR Shared README for documentation on how to use this package.