Last active
April 4, 2018 21:57
-
-
Save zackshapiro/1c1ff7783bfcfc2923fa3a3e5a838e44 to your computer and use it in GitHub Desktop.
Universal Blocks Documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For all of these, can `balance` also be a RAW value? | |
Send blocks | |
{ | |
"type": "utx", | |
"account": "xrb_from_address", | |
"previous": "previous_block_hash", | |
"representative": "xrb_your_current_or_new_rep", | |
"balance": "as_raw_or_hex", | |
"link": "source_block_hash", | |
"signature": "sig_hash", | |
"work": "work_hash" | |
} | |
Receive blocks | |
{ | |
"type": "utx", | |
"account": "xrb_from_address", | |
"previous": "previous_block_hash", | |
"representative": "xrb_your_current_or_new_rep", | |
"balance": "as_raw_or_hex", | |
"link": "source_hash", | |
"signature": "sig_hash", | |
"work": "work_hash" | |
} | |
Open blocks | |
{ | |
"type": "utx", | |
"account": "xrb_from_address", | |
"previous": "", | |
"representative": "xrb_rep_to_assign", | |
"balance": "0", | |
"link": "", | |
"signature": "sig_hash", | |
"work": "work_hash" | |
} | |
// are `previous`, `balance`, `link` here correct? | |
Change blocks | |
{ | |
"type": "utx", | |
"account": "xrb_from_address", | |
"previous": "block_hash", | |
"representative": "xrb_new_rep", | |
"balance": "as_raw_or_hex", | |
"link": "", | |
"signature": "sig_hash", | |
"work": "work_hash" | |
} | |
// is `link` correct? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment