Skip to content

Instantly share code, notes, and snippets.

@marklnichols
Created October 8, 2020 20:02
Show Gist options
  • Save marklnichols/4357fc55861bbcc9496e198e58922414 to your computer and use it in GitHub Desktop.
Save marklnichols/4357fc55861bbcc9496e198e58922414 to your computer and use it in GitHub Desktop.
json for transfer
[ [], [], [],
[ { "protocol": "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK",
"chain_id": "NetXKMbjQL2SBox",
"hash": "ooHzrho63y6z46sEqJhg6pA7NhvysD3yWtsaYHmgNyeXWgvMkQL",
"branch": "BL4YwwH8wHPGstFz7uX8yPvQ3pvzG9ErHPQBnriFVrgiqiFcMZS",
"contents":
[ { "kind": "transaction",
"source": "tz1YPSCGWXwBdTncK2aCctSZAXWvGsGwVJqU", "fee": "4861",
"counter": "2", "gas_limit": "43445", "storage_limit": "277",
"amount": "0",
"destination": "KT1KyAocEt1JfLydPTCDhKhuNMCBjW5X4GyW",
"parameters":
{ "entrypoint": "default",
"value":
{ "prim": "Pair",
"args":
[ { "prim": "Pair",
"args":
[ { "int": "0" },
{ "prim": "Left",
"args":
[ { "prim": "Pair",
"args":
[ { "int": "10000000" },
{ "bytes":
"0001e693d4194f7043972e938e2480fb9f1cb06acf70" } ] } ] } ] },
[ { "prim": "Some",
"args":
[ { "string":
"edsigty1BSF6NHA2TAAyGM8xbk4J2UtVmhvoAr4F5FhjYHYvQ3GUseAPvo7NxAZ192PoL2ZaAbfbHGLAe2A8C2yjJVg5ypUjEPa" } ] },
{ "prim": "None" },
{ "prim": "Some",
"args":
[ { "string":
"edsigtYP9oDsmDgWnZR61isEZJcqwTFLnkN9DCnQc9hnXuKeqLgKZAUZ1cvvWCHT3nwLx1BHvZ1yWcwdpiqK4uCeXLmPh1PzRvJ" } ] } ] ] } },
"metadata":
{ "balance_updates":
[ { "kind": "contract",
"contract": "tz1YPSCGWXwBdTncK2aCctSZAXWvGsGwVJqU",
"change": "-4861" },
{ "kind": "freezer", "category": "fees",
"delegate": "tz1RZUEpGCVgDR9Q1GZD8bsp4WyWpNhu1MRY",
"cycle": 0, "change": "4861" } ],
"operation_result":
{ "status": "applied",
"storage":
{ "prim": "Pair",
"args":
[ { "int": "1" },
{ "prim": "Pair",
"args":
[ { "int": "2" },
[ { "bytes":
"0081e8d2a1167f440a164a8e5d181de796a153bdfb889fc7429f6c871eac650b1f" },
{ "bytes":
"010242be4feeac06207968099d9a03c3d393c2ae055c59bf8bb36f740e40a60555b3" },
{ "bytes":
"003f31e644a47b9bd2e0308f0bef1cab3ed4e8726c5c22a8e628e88fc7f154df0d" } ] ] } ] },
"consumed_gas": "33138", "storage_size": "1015" },
"internal_operation_results":
[ { "kind": "transaction",
"source": "KT1KyAocEt1JfLydPTCDhKhuNMCBjW5X4GyW",
"nonce": 0, "amount": "10000000",
"destination": "tz2VLRAmAwGWAkbR32zMkD1wpfaECUsrx4Pz",
"result":
{ "status": "applied",
"balance_updates":
[ { "kind": "contract",
"contract":
"KT1KyAocEt1JfLydPTCDhKhuNMCBjW5X4GyW",
"change": "-10000000" },
{ "kind": "contract",
"contract":
"tz2VLRAmAwGWAkbR32zMkD1wpfaECUsrx4Pz",
"change": "10000000" },
{ "kind": "contract",
"contract":
"tz1YPSCGWXwBdTncK2aCctSZAXWvGsGwVJqU",
"change": "-257000" } ],
"consumed_gas": "10207",
"allocated_destination_contract": true } } ] } } ],
"signature":
"sigPmu9L1ow1fQVudVtibZMckdXFzJqY5JuauW2Wbba2BpS3gwSdpHRoRyEStFDapuNmeVx4TCZG2omCvbFVTziDGkmWfgNC" } ] ]
````````````````````````````````````````````````````````````````````````````````
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment