🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@portis/web3

Package Overview
Dependencies
Maintainers
4
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portis/web3

Portis Web3 SDK

4.0.7
latest
npm
Version published
Weekly downloads
3.3K
26.5%
Maintainers
4
Weekly downloads
 
Created
Source

Portis

Twitter license

  • ⚗️ demo
  • 📕 docs
  • 💬 chat

Quick Start

It should take no more than 5 minutes to get started with Portis 🚀

  • Register a DApp in the Portis Dashboard, and copy your DApp ID.

  • Install Portis and Web3

    npm install @portis/web3 web3
    
  • Import and initialize a web3 instance

    import Portis from '@portis/web3';
    import Web3 from 'web3';
    
    const portis = new Portis('YOUR_DAPP_ID', 'mainnet');
    const web3 = new Web3(portis.provider);
    
  • Verify everything works by calling a web3 method such as getAccounts:

    web3.eth.getAccounts((error, accounts) => {
      console.log(accounts);
    });
    
  • You are good to go! 👍

For more information see our docs 📕

License

MIT

Keywords

blockchain

FAQs

Package last updated on 02 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts