Web (Alpha)
Follow this guide to integrate Portal in your web app.
This product is currently in Alpha and is under active development.
Portal provides MPC wallets and dApp connections for organizations and their users.
To integrate Portal, an organization adds a client library to their web app and a few server API endpoints.
The basic Portal setup consists of a single packages:
@portal-hq/web
- The core Portal library
This allows you to initialize
Portal
in your app.yarn
npm
yarn add @portal-hq/web
npm install --save @portal-hq/web
import Portal from '@portal-hq/web'
const portal = Portal({
apiKey: 'YOUR-CLIENT-API-KEY',
autoApprove: true, // This should only be used for local development
chainId: 5,
gatewayConfig: 'YOUR-INFURA-OR-ALCHEMY-URL'
})
Last modified 1mo ago