web3
هذا المحتوى غير متوفر بلغتك بعد.
Web3 Plugin
Section titled “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
Section titled “Install”nself license set nself_pro_xxxxx...nself plugin install web3What It Does
Section titled “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
Section titled “Configuration”| Env Var | Default | Description |
|---|---|---|
WEB3_PORT | 3128 | Port the service listens on |
WEB3_PROVIDER_URL | none | RPC endpoint URL (e.g. Infura, Alchemy, or self-hosted node) |
WEB3_CHAIN_ID | none | Chain ID of the target network (e.g. 1 for Ethereum mainnet) |
| Port | Purpose |
|---|---|
3128 | Web3 REST API |
Database Tables
Section titled “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
Section titled “Nginx Routes”| Route | Target |
|---|---|
/api/web3/ | localhost:3128 |