For more info please refer to Torus documentation
- Install Provider Package
npm install --save @toruslabs/torus-embed
# OR
yarn add @toruslabs/torus-embed
- Set Provider Options
import Torus from "@toruslabs/torus-embed";
const providerOptions = {
torus: {
package: Torus, // required
options: {
networkParams: {
host: "https://localhost:8545", // optional
chainId: 1337, // optional
networkId: 1337 // optional
},
config: {
buildEnv: "development" // optional
}
}
}
};
Note: A Torus instance is available on the provider as provider.torus