Naughty Programmer's Madness
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@arkane-network/truffle-arkane-provider

0.0.30 • Public • Published

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

Install

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

DownloadsWeekly Downloads

7

Version

0.0.30

License

MIT

Unpacked Size

9.26 kB

Total Files

7

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar