Socket
Socket
Sign inDemoInstall

@portis/web3

Package Overview
Dependencies
281
Maintainers
4
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @portis/web3

Portis Web3 SDK


Version published
Weekly downloads
11K
decreased by-4.8%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

Portis

Twitter license

  • ⚗️ demo
  • 📕 docs
  • 💬 chat

Quick Start

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

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

  2. Install Portis and Web3

    npm install @portis/web3 web3
    
  3. 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);
    
  4. Verify everything works by calling a web3 method such as getAccounts:

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

For more information see our docs 📕

License

MIT

Keywords

FAQs

Last updated on 02 Feb 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc