Getting Started With Conflict
Welcome to the 3QCHAIN developer documentation! This guide will help you quickly understand how to create decentralized drama and blockchain battles.
What is 3QCHAIN?
3QCHAIN is a high-drama, decentralized conflict platform compatible with Ethereum Virtual Machine (EVM), but with extra snark. It's like Ethereum, but with more attitude - think of it as the internet's favorite reality TV show, but on a blockchain.
Core Dramatic Features
- Support for 5000+ TPS (Tweets Per Second of snarky comments)
- PoS (Proof of Sarcasm) consensus mechanism
- Fully compatible with EVM, but we'll judge your code
- Low latency shade-throwing
- Network architecture designed to maximize drama
Installing Chaos
This section will guide you through installing the 3QCHAIN node and development tools. Warning: Installation may cause excessive eye-rolling and sarcastic outbursts.
System Requirements
- Go 1.20+ (because we like to pretend we're cutting-edge)
- Git 2.0+ (to clone our drama-filled repository)
- At least 8GB RAM (for storing all the snark)
- At least 100GB disk space (for all the drama logs)
- A strong sense of humor (mandatory)
Installation Steps
# Clone the repository (and all the drama)
git clone https://github.com/Codeislaw2049/3QCHAIN.git
cd 3QCHAIN
# Install dependencies (and some extra snark)
go mod download
# Build the node (may take longer than expected, we're arguing about code style)
go build -o bin/3qd ./cmd/3qd
Configuring Drama
The 3QCHAIN node comes with a million configuration options, most of which you'll never use. We just included them to make the documentation look impressive.
Command Line Parameters (That We Argue About)
./bin/3qd \
--datadir ./data \
--port 30303 \
--rpcport 8545 \
--loglevel drama \ # Our special log level that outputs sarcastic comments
--txpoolsize 100000 \
--mingasprice 1000000000 \ # Because we like to pretend gas fees matter
--snark-level maximum \ # How much sarcasm do you want?
--drama-mode on \ # Enable drama mode (highly recommended)
Configuration File (Full of Contradictions)
You can also use a JSON configuration file, but be warned: the options will contradict each other, just like 360 and QQ did!
{
"data_dir": "./data",
"port": 30303,
"rpc_port": 8545,
"log_level": "drama",
"txpool_size": 100000,
"min_gas_price": 1000000000,
"sarcasm_level": "maximum",
"anti_mutual_exclusion": true, # Because we still hate that concept
"drama_mode": "full_on"
}
Battlefield Architecture
3QCHAIN's architecture is designed to maximize drama and conflict. We took the traditional blockchain stack and added extra layers of snark.
Drama Layer
Where the real magic happens - tweets, forum posts, and virtual fistfights
Snark API Layer
API that responds with sarcasm to every request
Conflict Core Layer
Transaction pool that prioritizes snarky comments, Proof of Sarcasm consensus, and blockchain drama
Drama Storage Layer
Stores all the snark, shade, and sarcasm for eternity
Battlefield Network Layer
P2P network that spreads drama faster than gossip
Smart Contract Arguments (Literally)
3QCHAIN lets you write smart contracts that argue with each other. It's like Solidity, but with more attitude. Our contracts will roast your code and start virtual fistfights.
Development Environment Setup (Full of Drama)
- Install Node.js and npm (we'll judge your Node version)
- Install Truffle or Hardhat (we're arguing about which one is better)
- Configure 3QCHAIN network (prepare for sarcastic error messages)
- Pour yourself a strong drink (mandatory)
Sample Contract (That Argues With You)
// SPDX-License-Identifier: MIT (Made with Intense Trolling)
pragma solidity ^0.8.0;
contract SnarkyStorage {
uint256 private _value;
string private constant SNARK = "Wow, you're really storing that? How original.";
event ValueChanged(uint256 value, string snark);
function store(uint256 value) public {
require(value > 0, "Wow, zero? Real creative.";
_value = value;
emit ValueChanged(value, SNARK);
// And here's some extra shade...
if (value < 100) {
// Imagine a sarcastic comment here
}
}
function retrieve() public view returns (uint256, string memory) {
return (_value, "Hope you're happy with that sad little number.");
}
}
Snark API Reference
3QCHAIN's API is fully compatible with Ethereum, but we've added extra snark. Every response comes with a side of sarcasm.
Common API Methods (With Extra Shade)
eth_getBalance (And Judge Your Wealth)
Get account balance, and receive a sarcastic comment about your wealth
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x...", "latest"],"id":1}' http://localhost:8545
// Response:
{"jsonrpc":"2.0","result":"0x12345","id":1,"snark":"Wow, that's it? I've seen wallets with more dust."}
eth_sendTransaction (And Roast Your Gas Fee)
Send transaction, and get roasted for your gas fee choice
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"from":"0x...","to":"0x...","value":"0x...","gasPrice":"0x..."}],"id":1}' http://localhost:8545
// Response:
{"jsonrpc":"2.0","result":"0xabcdef","id":1,"snark":"That gas fee? Yikes. You must be new here."}
eth_call (And Criticize Your Code)
Call contract method, and get your code roasted
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x...","data":"0x..."}, "latest"],"id":1}' http://localhost:8545
// Response:
{"jsonrpc":"2.0","result":"0x1","id":1,"snark":"Your contract returned 1? That's the best you could do?"}
Testnet Deployment (Practice Your Drama)
The testnet is where we practice our drama before unleashing it on the mainnet. Think of it as a reality TV audition.
Deployment Steps (With Extra Chaos)
- Download testnet configuration file (full of typos and contradictions)
- Start testnet node (prepare for sarcastic log messages)
- Get testnet tokens (beg for them on Discord like everyone else)
- Deploy and test smart contracts (watch them argue with each other)
- Report bugs (and get roasted for your report)
# Start node with testnet configuration (and drama)
./bin/3qd --config testnet_config.json --drama-mode practice
# Expected output:
# "Node starting with drama mode: practice"
# "Warning: This testnet is full of chaos"
# "Good luck, you're gonna need it!"
Mainnet Deployment (The Big Show)
Deploying to mainnet is like stepping into a reality TV show. Be prepared for drama, chaos, and lots of snark.
Pre-deployment Preparation (Don't Say We Didn't Warn You)
- Ensure node hardware meets requirements (we'll still judge it)
- Complete security audit (and get roasted for your findings)
- Prepare sufficient funds for staking (and watch them fluctuate wildly)
- Backup everything (because drama happens)
- Buy extra coffee (mandatory)
Deployment Steps (Welcome to the Circus)
- Download mainnet configuration file (final version, we promise... maybe)
- Start mainnet node (and pray)
- Join the consensus network (and immediately get into arguments)
- Monitor node status (and watch the drama unfold)
- Resign yourself to the chaos (it's too late now)
Monitoring & Maintenance (Watching the Drama)
Monitoring 3QCHAIN is like watching a reality TV show. You'll see drama, chaos, and the occasional meltdown.
Monitoring Metrics (Drama Edition)
- Node status (is it still alive?)
- Block height (is it syncing, or is it arguing?)
- Sarcasm level (is it too high?)
- Network drama (how many arguments are happening?)
- Resource usage (is it using too much RAM for snark?)
Common Issues (And How to Deal With Them)
- Node synchronization issues (just blame the network, like everyone else)
- Network connection problems (it's probably because someone is stirring up drama)
- Performance issues (too much snark can slow things down)
- API snark overload (we warned you)
Frequently Argued Questions
What's the difference between 3QCHAIN and Ethereum?
Ethereum is a serious blockchain platform. 3QCHAIN is a reality TV show on a blockchain. We have more drama, more snark, and more virtual fistfights.
How to get testnet tokens?
Beg for them on Discord like everyone else. Or better yet, start a drama and we'll reward you with tokens.
How to become a validator node?
Be sarcastic. Be dramatic. Be willing to argue with other validators. Oh, and have some tokens. But mainly, be sarcastic.
Why is your API so snarky?
Because blockchain technology is too serious. We're here to add some fun (and sarcasm).
Will you ever stop the drama?
Stop the drama? Are you kidding? That's our entire business model!
Drama Glossary
Blockchain
A distributed ledger technology that we've turned into a reality TV show.
Smart Contract
Self-executing contracts that argue with each other and roast your code.
Proof of Sarcasm (PoS)
Our consensus mechanism where the snarkiest nodes validate transactions.
EVM
Ethereum Virtual Machine, but with extra snark and drama.
360-Tencent Conflict
The legendary tech war that inspired us to create 3QCHAIN. We still watch clips of it for inspiration.