When you are developing a site that processes bitcoin transactions, like an e-wallet, an exchange, or anything else (merchant stuff), you have always had to deal with the limitations of bitcoind. No more! I have developed what I call BitcoinProc. It uses bitcoinj to combine the processing engine and the actual bitcoin client into one executable. This is a huge advantage for the processing engine. The engine provides much more than bitcoind could ever provide:
- Own storage of block chain in a single file
- Stores the wallet in wallet.wallet
- Better RPC commands (but rarely used!)
- Javascript engine scripting (details below)
- REALLY FAST blockchain download
Javascript engine scriptingSo the engine provides something really important. You can write javascript that the engine parses and acts on. bitcoin.js is what I call it. This is an example of the javascript that you will be using:
//Javascript
host = new MainHostClass();
function systemStart() {
}
function addToWebpage() {
return "<center><h4>This is the script</h4></center>";
}
function newBlock(height) {
//Cool! New block
host.log("Cool! Got block " + height + " added to the chain");
}
function newPeer() {
//Cool! New Peer
}
function peerDied() {
//Awww... Peer died :(
}
function newTX(type, amount, address, id) {
//New TX!
}
function cycle() {
//Called every 3 seconds to keep everything alive
}
function shutdown() {
host.log("Javascript Shutdown");
}
This is my bitcoin.js that I use during the development. It is not even close to what it
will be, but right now this is what it looks like. There will be APIs for MySQL, Twillio (SMS and Voice), direct Bitcoin info access, http requests (really simple wrapping), and access to the engine's webserver. This provides complete control of the engine without open sourcing it. The engine will be close source (except when you pay to access and modify (but not redistribute with or without profit) the source code) and priced as such:
- 25btc - 1 site license
- 100btc - 5 site license
- 500btc - Unlimited usage
- 1000btc - Full source code access (usage on 1 site)
- 1250btc - Full source code access (usage on 5 sites)
- 1500btc - Full source code access (usage on unlimited sites)
The engine will be up for sale within a couple months, and I am aiming for near the end of 1/12. Any feedback?