n8n-nodes-gnosis
v1.0.0
Published
A comprehensive n8n community node for Gnosis Chain blockchain providing 11 resources and 50+ operations for accounts, transactions, staking, bridges, tokens, NFTs, and smart contracts. Includes polling triggers for real-time blockchain monitoring.
Maintainers
Readme
n8n-nodes-gnosis
[Velocity BPA Licensing Notice]
This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).
Use of this node by for-profit organizations in production environments requires a commercial license from Velocity BPA.
For licensing information, visit https://velobpa.com/licensing or contact [email protected].
A comprehensive n8n community node for Gnosis Chain (formerly xDai), the Ethereum-compatible blockchain featuring low transaction costs, fast ~5-second block times, and POSDAO consensus with GNO staking. This node provides full blockchain interaction capabilities including account queries, transaction management, GNO staking, cross-chain bridge tracking, token/NFT operations, and smart contract interactions.
Features
- 11 Resource Categories with 50+ operations
- Full Account Management - balances, transaction history, token holdings, NFTs
- Transaction Operations - send, track, estimate gas, monitor confirmations
- GNO Staking - validators, deposits, withdrawals, beacon chain info
- Bridge Tracking - OmniBridge and xDai Bridge transaction monitoring
- Smart Contracts - read/write functions, ABI encoding, event queries
- Token Operations - ERC-20 info, transfers, prices, bridged tokens
- NFT Support - metadata, transfers, collection info
- Event Monitoring - log queries, topic filtering, contract events
- 6 Trigger Types - new blocks, transactions, transfers, bridge events
- HTTP-Only - no web3.js dependencies, pure JSON-RPC
Installation
Community Nodes (Recommended)
- Open your n8n instance
- Go to Settings > Community Nodes
- Click Install a community node
- Enter
n8n-nodes-gnosis - Click Install
Manual Installation
# Navigate to your n8n custom nodes directory
cd ~/.n8n/custom
# Clone the repository
git clone https://github.com/Velocity-BPA/n8n-nodes-gnosis.git
# Install dependencies and build
cd n8n-nodes-gnosis
npm install
npm run build
# Restart n8nDevelopment Installation
# Extract and enter directory
unzip n8n-nodes-gnosis.zip
cd n8n-nodes-gnosis
# Install dependencies
npm install
# Build the project
npm run build
# Create symlink to n8n custom nodes
mkdir -p ~/.n8n/custom
ln -s $(pwd) ~/.n8n/custom/n8n-nodes-gnosis
# Restart n8n
n8n startCredentials Setup
Configure the Gnosis Chain API credentials:
| Field | Description | Required | |-------|-------------|----------| | Network | Mainnet or Chiado testnet | Yes | | RPC Endpoint | JSON-RPC URL (default: https://rpc.gnosischain.com/) | Yes | | Private Key | For signing transactions (keep secure!) | No | | Gnosisscan API Key | For enhanced explorer features | No |
Getting API Keys
- RPC Endpoint: Use the default public RPC or get a dedicated endpoint from providers like Ankr, QuickNode, or GetBlock
- Gnosisscan API Key: Register at gnosisscan.io for free API access
- Private Key: Export from your wallet (MetaMask, etc.) - never share this!
Resources & Operations
Account
| Operation | Description | |-----------|-------------| | Get Balance | Get xDai balance for an address | | Get Token Balance | Get ERC-20 token balance | | Get NFTs | List owned NFTs | | Get Transaction History | Account transaction history | | Get Internal Transactions | Internal contract calls | | Get Token Transfers | ERC-20 transfer history |
Transaction
| Operation | Description | |-----------|-------------| | Get Transaction | Transaction details by hash | | Get Transaction Receipt | Receipt with logs and status | | Send Transaction | Submit signed transaction | | Get Pending Transactions | Mempool transactions | | Estimate Gas | Gas estimation with cost | | Get Transaction Status | Confirmation count and finality |
Block
| Operation | Description | |-----------|-------------| | Get Block | Block details by number/hash | | Get Latest Block | Current block info | | Get Block Transactions | All transactions in block | | Get Block By Timestamp | Find block at specific time |
Staking (GNO)
| Operation | Description | |-----------|-------------| | Get Validator Info | Validator details (balance, status) | | List Validators | Paginated validator list | | Get Deposits | Staking deposits by address | | Get Withdrawals | Withdrawal history | | Get Beacon Chain Info | Epoch, slot, finalization | | Get Staking Stats | Network staking statistics |
Smart Contract
| Operation | Description | |-----------|-------------| | Get Contract ABI | Verified contract interface | | Read Contract | Call view/pure functions | | Write Contract | Prepare write transactions | | Get Contract Source | Verified source code | | Get Contract Events | Event log queries |
Token
| Operation | Description | |-----------|-------------| | Get Token Info | Name, symbol, decimals, supply | | Get Token Holders | Holder list | | Get Token Transfers | Transfer history | | Get Bridged Tokens | Common bridged tokens | | Get Token Price | CoinGecko price data |
NFT
| Operation | Description | |-----------|-------------| | Get NFT Metadata | Token URI and metadata | | Get NFT Transfers | Transfer history | | Get Collection Info | Collection details |
Bridge
| Operation | Description | |-----------|-------------| | Get Bridge Transactions | Cross-chain transfers | | Get Pending Bridges | In-progress transfers | | Get Bridge Stats | Volume and usage | | Track Bridge TX | Monitor transfer status |
Network
| Operation | Description | |-----------|-------------| | Get Network Status | Chain status and sync | | Get Gas Price | Current gas prices | | Get Chain Stats | Network metrics | | Get Finality | Finality information |
Events
| Operation | Description | |-----------|-------------| | Get Logs | Event logs with filters | | Subscribe To Logs | WebSocket subscription info | | Filter Events | Filter by topics | | Get Contract Events | Events for specific contract |
Utility
| Operation | Description | |-----------|-------------| | Convert Units | xDai/Wei/Gwei conversion | | Encode Function | ABI encode function calls | | Decode Data | ABI decode return data | | Get API Health | Check service status |
Trigger Node
The Gnosis Chain Trigger polls for blockchain events:
| Trigger | Description | |---------|-------------| | New Block | Fires on each new block | | New Transaction to Address | Incoming/outgoing transactions | | Token Transfer | ERC-20 transfer events | | Contract Event | Specific contract events | | Bridge Transaction | Cross-chain transfers | | Large Transaction | Transactions above threshold |
Usage Examples
Get Account Balance
{
"resource": "accounts",
"operation": "getBalance",
"address": "0x742d35Cc6634C0532925a3b844Bc9e7595f3E8f1"
}Monitor Large Transactions
Configure the trigger node:
- Trigger Type: Large Transaction
- Threshold: 100 (xDai)
- Address Filter: (optional)
Track Bridge Transfer
{
"resource": "bridge",
"operation": "trackBridgeTX",
"transactionHash": "0x123..."
}Read Smart Contract
{
"resource": "smartContracts",
"operation": "readContract",
"contractAddress": "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
"functionName": "balanceOf",
"parameters": {
"params": [
{ "type": "address", "value": "0x742d35Cc..." }
]
}
}Gnosis Chain Concepts
| Concept | Description | |---------|-------------| | xDai | Native gas token (bridged DAI, 18 decimals) | | GNO | Gnosis staking/governance token | | POSDAO | Proof of Stake DAO consensus mechanism | | OmniBridge | Cross-chain ERC-20 token bridge | | xDai Bridge | DAI ↔ xDai native bridge | | Chiado | Gnosis Chain testnet | | Beacon Chain | Consensus layer for GNO staking |
Networks
| Network | Chain ID | RPC URL | |---------|----------|---------| | Mainnet | 100 | https://rpc.gnosischain.com/ | | Chiado | 10200 | https://rpc.chiadochain.net/ |
Error Handling
The node provides detailed error messages:
- Invalid Address: Address validation failed
- RPC Error: Network or endpoint issues
- Contract Error: Smart contract execution failed
- Rate Limit: Too many requests (add API key)
Enable Continue on Fail to handle errors gracefully in workflows.
Security Best Practices
- Never share private keys - Use n8n credentials storage
- Use testnet first - Test workflows on Chiado
- Validate addresses - The node validates all addresses
- Monitor gas costs - Use estimateGas before transactions
- Rate limiting - Add Gnosisscan API key for higher limits
Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Lint
npm run lint
# Fix lint issues
npm run lint:fix
# Format code
npm run formatAuthor
Velocity BPA
- Website: velobpa.com
- GitHub: Velocity-BPA
Licensing
This n8n community node is licensed under the Business Source License 1.1.
Free Use
Permitted for personal, educational, research, and internal business use.
Commercial Use
Use of this node within any SaaS, PaaS, hosted platform, managed service, or paid automation offering requires a commercial license.
For licensing inquiries: [email protected]
See LICENSE, COMMERCIAL_LICENSE.md, and LICENSING_FAQ.md for details.
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please ensure your code passes linting and tests before submitting.
Support
- GitHub Issues: Report bugs or request features
- Documentation: Gnosis Chain Docs
- n8n Community: n8n Community Forum
Acknowledgments
- Gnosis Chain - The blockchain platform
- n8n - Workflow automation platform
- Gnosisscan - Block explorer API
- CoinGecko - Token price data
