plugin web3 - nself-org/cli GitHub Wiki
Web3 Plugin
NFT management, token-gating for content, DAO governance, wallet management, and blockchain transaction tracking. Pro plugin.
Requires: Basic license tier or higher.
nself license set nself_pro_...
Install
nself license set nself_pro_xxxxx...
nself plugin install web3
What It Does
The web3 plugin integrates blockchain capabilities into your nself backend, providing wallet management, NFT and token tracking, and token-gating so you can restrict content access to holders of specific assets. It also includes DAO governance primitives (proposals and voting) and a full transaction and event log synced from your configured RPC endpoint.
Configuration
| Env Var | Default | Description |
|---|---|---|
WEB3_PORT |
3128 |
Port the service listens on |
WEB3_PROVIDER_URL |
— | RPC endpoint URL (e.g. Infura, Alchemy, or self-hosted node) |
WEB3_CHAIN_ID |
— | Chain ID of the target network (e.g. 1 for Ethereum mainnet) |
Ports
| Port | Purpose |
|---|---|
3128 |
Web3 REST API |
Database Tables
12 tables added to your Postgres database:
np_web3_walletsnp_web3_nftsnp_web3_tokensnp_web3_gatesnp_web3_transactionsnp_web3_daosnp_web3_proposalsnp_web3_votesnp_web3_collectionsnp_web3_contractsnp_web3_eventsnp_web3_sync_log
Nginx Routes
| Route | Target |
|---|---|
/api/web3/ |
localhost:3128 |