Skip to content

Instantly share code, notes, and snippets.

@aaroncox
Created August 13, 2018 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaroncox/fb557b71f3e60d3e35498cb9621ccabf to your computer and use it in GitHub Desktop.
Save aaroncox/fb557b71f3e60d3e35498cb9621ccabf to your computer and use it in GitHub Desktop.
unsigned transaction format
{
"contract": {
"account": "ridlridlcoin",
"abi": {
"version": "eosio::abi/1.0",
"types": [
{
"new_type_name": "account_name",
"type": "name"
}
],
"structs": [
{
"name": "transfer",
"base": "",
"fields": [
{
"name": "from",
"type": "account_name"
},
{
"name": "to",
"type": "account_name"
},
{
"name": "quantity",
"type": "asset"
},
{
"name": "memo",
"type": "string"
}
]
},
{
"name": "create",
"base": "",
"fields": []
},
{
"name": "claim",
"base": "",
"fields": [
{
"name": "claimer",
"type": "account_name"
}
]
},
{
"name": "issue",
"base": "",
"fields": [
{
"name": "to",
"type": "account_name"
},
{
"name": "quantity",
"type": "asset"
},
{
"name": "memo",
"type": "string"
}
]
},
{
"name": "account",
"base": "",
"fields": [
{
"name": "balance",
"type": "asset"
}
]
},
{
"name": "currency_stats",
"base": "",
"fields": [
{
"name": "supply",
"type": "asset"
},
{
"name": "max_supply",
"type": "asset"
},
{
"name": "issuer",
"type": "account_name"
}
]
}
],
"actions": [
{
"name": "transfer",
"type": "transfer",
"ricardian_contract": "## Transfer Terms & Conditions\n\nI, {{from}}, certify the following to be true to the best of my knowledge:\n\n1. I certify that {{quantity}} is not the proceeds of fraudulent or violent activities.\n2. I certify that, to the best of my knowledge, {{to}} is not supporting initiation of violence against others.\n3. I have disclosed any contractual terms & conditions with respect to {{quantity}} to {{to}}.\n\nI understand that funds transfers are not reversible after the {{transaction.delay}} seconds or other delay as configured by {{from}}'s permissions.\n\nIf this action fails to be irreversibly confirmed after receiving goods or services from '{{to}}', I agree to either return the goods or services or resend {{quantity}} in a timely manner.\n"
},
{
"name": "claim",
"type": "claim",
"ricardian_contract": "## Claim Terms & Conditions \n\n I, {{claimer}} am simply claiming my own row in this contract and assuming my own costs for RAM."
},
{
"name": "issue",
"type": "issue",
"ricardian_contract": ""
},
{
"name": "create",
"type": "create",
"ricardian_contract": ""
}
],
"tables": [
{
"name": "accounts",
"index_type": "i64",
"key_names": [
"currency"
],
"key_types": [
"uint64"
],
"type": "account"
},
{
"name": "stat",
"index_type": "i64",
"key_names": [
"currency"
],
"key_types": [
"uint64"
],
"type": "currency_stats"
}
],
"ricardian_clauses": [],
"error_messages": [],
"abi_extensions": []
},
"typeMap": {
"uint64": "int",
"uint32": "int",
"bool": "bool"
}
},
"transaction": {
"transaction_id": "e608c4c962a0b3e136b53a49d545954f3e76cc63dc652885224c120074c3ff9b",
"broadcast": false,
"transaction": {
"compression": "none",
"transaction": {
"expiration": "2018-08-13T05:59:56",
"ref_block_num": 50228,
"ref_block_prefix": 2965590756,
"net_usage_words": 0,
"max_cpu_usage_ms": 0,
"delay_sec": 0,
"context_free_actions": [],
"actions": [
{
"account": "ridlridlcoin",
"name": "claim",
"authorization": [
{
"actor": "developjesta",
"permission": "active"
}
],
"data": {
"claimer": "developjesta"
}
}
],
"transaction_extensions": []
},
"signatures": []
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment