n8n-nodes-oasys
v1.0.0
Published
A comprehensive n8n community node for Oasys blockchain providing 16 resources and 100+ operations for Hub L1 staking, Verse L2 gaming, cross-layer bridging, NFT management, and enterprise game studio integrations.
Downloads
107
Maintainers
Readme
n8n-nodes-oasys
[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 package for the Oasys blockchain - a gaming-focused Layer 1/Layer 2 blockchain with Hub and Verse architecture, featuring partnerships with major game studios including SEGA, Bandai Namco, and Ubisoft.
Features
Action Node: Oasys
Complete blockchain interactions with 16 resources and 100+ operations:
| Resource | Operations | |----------|------------| | Wallet | Get balance, transfer OAS/tokens, NFT queries, cross-layer balances | | Hub | Network info, blocks, transactions, validators, staking, epochs | | Verse | Verse info, status, blocks, transactions, gas prices | | Bridge | Deposit/withdraw between Hub and Verse, status tracking | | NFT | Get info, metadata, transfers (ERC721/ERC1155) | | Collection | Collection info, stats, floor prices | | Staking | Stake/unstake OAS, validator delegation, rewards | | Validator | Validator info, performance, delegators | | Contract | Read/write contracts, events, gas estimation | | Gaming | Game info, player stats, partner integrations | | Partner | Game studio information and partnerships | | Block | Block queries for Hub and Verse | | Transaction | Send transactions, status, receipts | | Token | ERC20 token operations | | Events | Contract event queries | | Utility | Unit conversion, address validation, signing |
Trigger Node: Oasys Trigger
Real-time event monitoring for:
- Wallet events (balance changes, transfers)
- Hub events (new blocks, epoch changes)
- Verse events (blocks, status changes)
- Bridge events (deposits, withdrawals)
- NFT events (transfers, mints, burns)
- Staking events (stake changes, rewards)
- Contract events (custom event monitoring)
Installation
Community Nodes (Recommended)
- Open n8n
- Go to Settings > Community Nodes
- Click Install a community node
- Enter
n8n-nodes-oasys - Click Install
Manual Installation
# Clone the repository
git clone https://github.com/Velocity-BPA/n8n-nodes-oasys.git
cd n8n-nodes-oasys
# Install dependencies
npm install
# Build the project
npm run build
# Link to n8n
npm link
# In your n8n installation directory
npm link n8n-nodes-oasysDevelopment Installation
# 1. Extract the zip file
unzip n8n-nodes-oasys.zip
cd n8n-nodes-oasys
# 2. Install dependencies
npm install
# 3. Build the project
npm run build
# 4. Create symlink to n8n custom nodes directory
# For Linux/macOS:
mkdir -p ~/.n8n/custom
ln -s $(pwd) ~/.n8n/custom/n8n-nodes-oasys
# For Windows (run as Administrator):
# mklink /D %USERPROFILE%\.n8n\custom\n8n-nodes-oasys %CD%
# 5. Restart n8n
n8n startCredentials Setup
Oasys Network Credentials
| Field | Description | |-------|-------------| | Layer | Hub Mainnet, Hub Testnet, Verse, or Custom | | Verse | Select from available Verses (if Layer 2) | | Private Key | Your wallet private key (securely stored) | | WebSocket URL | Optional, for real-time subscriptions |
Oasys API Credentials (Optional)
| Field | Description | |-------|-------------| | Explorer API Key | For enhanced explorer queries | | Gaming API Endpoint | For game integrations |
Resources & Operations
Wallet Resource
getBalance- Get OAS balance for an addressgetTokenBalance- Get ERC20 token balancetransfer- Transfer OAS to another addresstransferToken- Transfer ERC20 tokensgetNfts- Get NFTs owned by an addressgetCrossLayerBalances- Get balances across Hub and Verses
Hub Resource
getInfo- Get Hub network informationgetBlock- Get block by number or hashgetTransaction- Get transaction detailsgetValidators- Get list of validatorsgetStakingInfo- Get staking informationgetEpochInfo- Get current epoch informationgetGasPrice- Get current gas price
Verse Resource
getInfo- Get Verse informationgetList- Get list of all VersesgetStatus- Get Verse statusgetBlock- Get Verse blockgetTransaction- Get Verse transactiongetGasPrice- Get Verse gas price (often 0 for gasless)
Bridge Resource
deposit- Deposit OAS from Hub to Versewithdraw- Withdraw OAS from Verse to HubgetStatus- Get bridge transaction statusgetPending- Get pending bridge transactionsgetHistory- Get bridge transaction history
Staking Resource
stake- Stake OAS to a validatorunstake- Unstake OAS from a validatordelegate- Delegate to a validatorgetRewards- Get staking rewardsclaimRewards- Claim pending rewardsgetAPY- Get current staking APY
Contract Resource
read- Read contract statewrite- Write to contractgetEvents- Get contract eventsestimateGas- Estimate gas for transaction
Trigger Node
The Oasys Trigger node monitors blockchain events in real-time:
| Category | Events | |----------|--------| | Wallet | Balance changes, incoming/outgoing transfers | | Hub | New blocks, epoch changes, validator updates | | Verse | New blocks, status changes | | Bridge | Deposit/withdrawal initiated, completed | | NFT | Transfers, mints, burns | | Staking | Stake changes, reward distributions | | Contract | Custom contract events |
Usage Examples
Get Wallet Balance
// Node Configuration
{
"resource": "wallet",
"operation": "getBalance",
"address": "0x742d35Cc6634C0532925a3b844Bc9e7595f1e9a2"
}Stake OAS to Validator
// Node Configuration
{
"resource": "staking",
"operation": "stake",
"validator": "0x...",
"amount": "1000" // In OAS
}Bridge OAS from Hub to Verse
// Node Configuration
{
"resource": "bridge",
"operation": "deposit",
"verse": "homeVerse",
"amount": "100" // In OAS
}Monitor New Blocks
// Trigger Configuration
{
"category": "hub",
"event": "newBlock",
"pollInterval": 15
}Oasys Blockchain Concepts
Two-Layer Architecture
Oasys uses a unique two-layer architecture optimized for gaming:
Hub (Layer 1): The main Proof-of-Stake chain for security, staking, and validator operations. Chain ID: 248 (mainnet), 9372 (testnet).
Verse (Layer 2): Gaming-optimized rollups offering fast, gasless transactions. Each Verse is operated by a game studio or partner.
Key Partners
Major gaming companies operating as validators and Verse operators:
- SEGA - Global gaming company
- Bandai Namco - Entertainment conglomerate
- Ubisoft - Major gaming publisher
- double jump.tokyo - Blockchain gaming pioneers
- Netmarble, Com2uS, Wemade - Leading game developers
Staking
- Minimum Validator Stake: 10,000,000 OAS
- Minimum Delegation: 1 OAS
- Epoch Duration: ~24 hours (5,760 blocks)
- Unbonding Period: 10 epochs
- Default Commission: 10%
Bridging
- Deposit Time: ~15 minutes (64 Hub confirmations)
- Withdrawal Time: 7 days (challenge period)
- Minimum Amount: 0.001 OAS
- Maximum Amount: 100,000 OAS per transaction
Networks
Hub (Layer 1)
| Network | Chain ID | RPC URL | |---------|----------|---------| | Mainnet | 248 | https://rpc.mainnet.oasys.games | | Testnet | 9372 | https://rpc.testnet.oasys.games |
Available Verses (Layer 2)
| Verse | Chain ID | Features | |-------|----------|----------| | HOME Verse | 19011 | Official Oasys Verse, Gasless | | MCH Verse | 29548 | My Crypto Heroes, Gasless | | TCG Verse | 2400 | Trading Card Games, Gasless | | Saakuru Verse | 7225878 | Saakuru Games | | Chain Verse | 5555 | Chain Games | | DeFi Verse | 16116 | DeFi Applications | | Yooldo Verse | 50006 | Yooldo Games | | GEEK Verse | 75512 | GEEK Games |
Error Handling
The node provides detailed error messages for common issues:
| Error | Cause | Solution |
|-------|-------|----------|
| INSUFFICIENT_FUNDS | Not enough OAS for transaction | Add more OAS to your wallet |
| INVALID_ADDRESS | Malformed Ethereum address | Check address format (0x...) |
| BRIDGE_LIMIT_EXCEEDED | Amount exceeds bridge limits | Reduce amount or split transaction |
| VALIDATOR_NOT_FOUND | Invalid validator address | Verify validator is active |
| NETWORK_ERROR | RPC connection failed | Check network and RPC URL |
Security Best Practices
- Never share private keys - Store securely in n8n credentials
- Use test wallets - Test operations with small amounts first
- Verify addresses - Double-check all addresses before transactions
- Monitor bridge operations - Track deposits and withdrawals
- Use gasless Verses - Leverage Verse L2 for free transactions
Development
Build Commands
# Install dependencies
npm install
# Build the project
npm run build
# Development mode (watch)
npm run dev
# Run linting
npm run lint
# Fix linting issues
npm run lint:fix
# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Format code
npm run formatProject Structure
n8n-nodes-oasys/
├── credentials/
│ ├── OasysNetwork.credentials.ts
│ ├── OasysApi.credentials.ts
│ └── VerseCredentials.credentials.ts
├── nodes/
│ └── Oasys/
│ ├── Oasys.node.ts
│ ├── OasysTrigger.node.ts
│ ├── oasys.svg
│ ├── constants/
│ │ ├── networks.ts
│ │ ├── verses.ts
│ │ ├── contracts.ts
│ │ ├── validators.ts
│ │ └── partners.ts
│ ├── transport/
│ │ ├── hubClient.ts
│ │ ├── verseClient.ts
│ │ ├── bridgeClient.ts
│ │ └── apiClient.ts
│ └── utils/
│ ├── unitConverter.ts
│ ├── layerUtils.ts
│ ├── bridgeUtils.ts
│ └── validatorUtils.ts
├── test/
│ ├── unit/
│ └── integration/
├── scripts/
│ ├── test.sh
│ ├── build.sh
│ └── install-local.sh
├── package.json
├── tsconfig.json
├── LICENSE
├── COMMERCIAL_LICENSE.md
├── LICENSING_FAQ.md
└── README.mdAuthor
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
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests:
npm test - Submit a pull request
Support
- Issues: GitHub Issues
- Documentation: Oasys Docs
- Licensing: [email protected]
