Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @arkane-network/truffle-arkane-provider with all npm packages installed. Try it out:

require("truffle/package.json"); // truffle is a peer dependency. var truffleArkaneProvider = require("@arkane-network/truffle-arkane-provider")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@arkane-network/truffle-arkane-provider v0.0.30

Arkane-enabled Web3 Provider

Truffle Arkane Wallet Provider

Arkane Wallet-enabled Web3 Provider.

Install

npm i @arkane-network/truffle-arkane-provider

General Usage

var ArkaneProvider = require("@arkane-network/truffle-arkane-provider");

var provider = new ArkaneProvider({
    apiKey: 'my-api-key', //mandatory
    baseUrl: 'https://api.arkane.network',
    providerUrl: 'http://localhost:8545'
});

Truffle Usage

You can easily use this from within a truffle configuration

var ArkaneProvider = require("@arkane-network/truffle-arkane-provider");

module.exports = {
  networks: {
    development: {
      host: "localhost",
      port: 8545,
      network_id: "*" // Match any network id
    },
    ropsten: {
      provider: () =>
        new ArkaneProvider({
            apiKey: 'my-api-key',
            baseUrl: 'https://api.arkane.network',
            providerUrl: 'https://ropsten.infura.io'
        }),
      network_id: '3',
    }
  }
};

Documentation

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free