Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 691 Bytes

torus.md

File metadata and controls

37 lines (28 loc) · 691 Bytes

Torus

For more info please refer to Torus documentation

  1. Install Provider Package
npm install --save @toruslabs/torus-embed

# OR

yarn add @toruslabs/torus-embed
  1. 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