https://github.com/blockstarter/whitebox
Whitebox - Trusted Oracle
https://github.com/blockstarter/whitebox
blockchain oracle
Last synced: 9 months ago
JSON representation
Whitebox - Trusted Oracle
- Host: GitHub
- URL: https://github.com/blockstarter/whitebox
- Owner: blockstarter
- Created: 2017-07-15T23:22:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-20T17:46:29.000Z (over 8 years ago)
- Last Synced: 2025-03-14T12:16:06.032Z (about 1 year ago)
- Topics: blockchain, oracle
- Language: JavaScript
- Homepage: http://whitebox.flyber.net
- Size: 203 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Whitebox
### Code as a service Business Model
### You can upload your code and earn money from it's usage
---------------------------
#### This is centralized demo
Install
```
npm i livescript whitebox -g
```
Generate Client Wallet
```Livescript
require! \whitebox
{ generate-wallet } = whitebox
{ mnemonic, address } = generate-wallet!
# Please keep your mnemonic in the safe place
```
Check Status
```Livescript
require! \whitebox
{ get-container } = whitebox
config =
name: \accounts
mnemonic: "your secret private phrase"
node: \https://expresshub-askucher.c9users.io
container = get-container config
container.status (err, result)->
console.log err, result
# running
```
Get Available Methods
```Livescript
container.methods (err, result)->
console.log err, result
```
Get Full Container Info
```Livescript
require! \whitebox
{ get-container } = whitebox
config =
name: \accounts
mnemonic: "your secret private phrase"
node: \https://expresshub-askucher.c9users.io
container = get-container config
container.info (err, result)->
console.log err, result
```
Execute Method
```Livescript
container.method \transfer , { to: "ADDRESS", amount: "0.001" }, (err, result)->
console.log err, result
```
Stop Container (You must be an owner)
```Livescript
container.stop (err, result)->
console.log err, result
```
Start Container (You must be an owner)
```Livescript
container.start (err, result)->
console.log err, result
```
Create New Container (You must have enough funds)
```Livescript
config =
name: \new-container
mnemonic: "your secret private phrase"
container = get-container config
files =
* tags: [\open]
code: "...."
* tags: [\secured]
code: "...."
container.create files, (err, result)->
console.log err, result
```
Please generate an wallet and ask for funds `a.stegno@gmail.com`