Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Ethereum wallet provider that user pustom private key server for signing

License

Notifications You must be signed in to change notification settings

Neufund/server-wallet-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

server-wallet-provider

Ethereum wallet provider that user pustom private key server for signing

Example usage

import ProviderEngine from 'web3-provider-engine';
import ServerWalletProvider from 'server-wallet-provider';
import RpcSubprovider from 'web3-provider-engine/subproviders/rpc.js';

const engine = new ProviderEngine();
engine.addProvider(new ServerWalletProvider('http://example.com', 'YOUR_JWT'));
engine.addProvider(new RpcSubprovider({rpcUrl: 'RPC_URL'}));
engine.start();

const web3 = new Web3(engine);

web3.eth.getAccounts // would return a single account
web3.eth.sendTransaction // would use private key server for signing

About

Ethereum wallet provider that user pustom private key server for signing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published