All Projects → nosuchip → truffle-privatekey-provider

nosuchip / truffle-privatekey-provider

Licence: other
Private Key Web3 provider

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to truffle-privatekey-provider

etherbrite
🗓 Clone eventbrite on Ethereum, built in Solidity, TruffleJS, Web3js and React/Redux.
Stars: ✭ 19 (-56.82%)
Mutual labels:  truffle
ethereum-contracts
Knowledge Ethereum Smart Contracts
Stars: ✭ 41 (-6.82%)
Mutual labels:  truffle
LogoVote2017
Collection of smart contract samples
Stars: ✭ 24 (-45.45%)
Mutual labels:  truffle
erc1363-payable-token
Code implementation for the ERC-1363 Payable Token
Stars: ✭ 83 (+88.64%)
Mutual labels:  truffle
BlockVote
BlockVote is a blockchain based election system which lets voters elect candidate in an election.
Stars: ✭ 50 (+13.64%)
Mutual labels:  truffle
nifty-game
🃏🎮A NFT(ERC721) card game build on Ethereum, Truffle, Ganache and hosting on IPFS.
Stars: ✭ 222 (+404.55%)
Mutual labels:  truffle
tvdapp
Blockchain DApp using React, Next.js and MobX
Stars: ✭ 66 (+50%)
Mutual labels:  truffle
cita-truffle-box
Develop DApps on CITA
Stars: ✭ 12 (-72.73%)
Mutual labels:  truffle
pyrrha-consensus
Core set of Ethereum contracts for Pandora Boxchain functioning
Stars: ✭ 25 (-43.18%)
Mutual labels:  truffle
likecoin-contracts
Token contracts of Like Coin
Stars: ✭ 22 (-50%)
Mutual labels:  truffle
mortgage-blockchain-demo
A demo DApp on Ethereum to process mortgage loans and payments
Stars: ✭ 42 (-4.55%)
Mutual labels:  truffle
escrow-eth
Escrow contract
Stars: ✭ 41 (-6.82%)
Mutual labels:  truffle
web3-gear
Proxy Thor's RESTful API to Eth JSON-RPC, to support Remix, Truffle and more.
Stars: ✭ 27 (-38.64%)
Mutual labels:  truffle
filecoin-box
Filecoin flavored Ganache Truffle box
Stars: ✭ 23 (-47.73%)
Mutual labels:  truffle
bodhi-core
Smart Contracts for the Bodhi Prediction Market
Stars: ✭ 32 (-27.27%)
Mutual labels:  truffle
swap-swear-and-swindle
Contracts for Swap, Swear and Swindle. Swap is a protocol for p2p accounting. This is the basis for Swarm’s incentivization model.
Stars: ✭ 46 (+4.55%)
Mutual labels:  truffle
TypeChain
🔌 TypeScript bindings for Ethereum smart contracts
Stars: ✭ 1,881 (+4175%)
Mutual labels:  truffle
ethdock
Ethereum development package in docker.
Stars: ✭ 25 (-43.18%)
Mutual labels:  truffle
clovers-contracts
Clovers network contracts
Stars: ✭ 18 (-59.09%)
Mutual labels:  truffle
solidity-node-docker-starter
Starter project for developing Ethereum smart contracts with Solidity, Truffle and Node.js as a backend server.
Stars: ✭ 57 (+29.55%)
Mutual labels:  truffle

NPM

truffle-privatekey-provider

Private Key provider for Web3. Used to sign transactions by provider private key

Install

$ npm install truffle-privatekey-provider

Usage

Provider can be used either with Web3 only or in Truffle infrastructure

Web3 Usage

var PrivateKeyProvider = require("truffle-privatekey-provider");
var privateKey = "62537136911bca3a7e2b....";
var provider = new PrivateKeyProvider(privateKey, "http://localhost:8545");

Parameters:

  • privateKey: string. private key for account that would be used to sign transactions.
  • providerUri: string. URI of Ethereum client to send Web3 requests.

Truffle Usage

truffle.js

var PrivateKeyProvider = require("truffle-privatekey-provider");

var privateKey = "62537136911bca3a7e2b....";

module.exports = {
  networks: {
    rinkeby: {
      provider: () => new PrivateKeyProvider(privateKey, "https://rinkeby.infura.io/"),
      network_id: 4
    },
    ....
  }
};
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].