Skip to content

Instantly share code, notes, and snippets.

@zackshapiro
Last active April 4, 2018 21:57
Show Gist options
  • Save zackshapiro/1c1ff7783bfcfc2923fa3a3e5a838e44 to your computer and use it in GitHub Desktop.
Save zackshapiro/1c1ff7783bfcfc2923fa3a3e5a838e44 to your computer and use it in GitHub Desktop.
Universal Blocks Documentation
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