Provisional JS API
getBlock (number or string)Retrieves a block by either the address or the number. If supplied with a string it will assume address, number otherwise.
transact (sec, recipient, value, gas, gas price, data)Creates a new transaction using your current key.
create (sec, value, gas, gas price, init, body)Creates a new contract using your current key.
getKey (none)Retrieves your current key in hex format.
getStorage (object address, storage address)Retrieves the storage address of the given object.
getBalance (object address)Retrieves the balance at the current address
watch (string [, string])Watches for changes on a specific address’ state object such as state root changes or value changes.
disconnect (string [, string])Disconnects from a previous
on (event)Subscribe to event which will be called whenever an event of type
off (event)Unsubscribe to the given event
trigger (event, data)Trigger event of type
with the given data. **note:** This function does not take a callback function.
All events are written in camel cased style beginning with a lowercase letter. Subevents are denoted by a colon
block:newFired when a new valid block has been found on the wire. The attached value of this call is a block.
object:changedFired when a watched address, specified through
watch, changes in value.