Skip to content

Instantly share code, notes, and snippets.

@mecampbellsoup
Created June 15, 2018 21:25
Show Gist options
  • Save mecampbellsoup/6b6902fb2432932431d5b8af5c7aef5e to your computer and use it in GitHub Desktop.
Save mecampbellsoup/6b6902fb2432932431d5b8af5c7aef5e to your computer and use it in GitHub Desktop.
JSON dump of GET wallet transfers BitGo API endpoint.
(Pdb) print json.dumps(transaction_history_json, indent=4, sort_keys=True)
{
"coin": "bch",
"transfers": [
{
"coin": "bch",
"confirmations": 124,
"confirmedTime": "2018-06-14T22:09:40.073Z",
"createdTime": "2018-06-14T21:57:57.225Z",
"date": "2018-06-14T22:09:40.073Z",
"entries": [
{
"address": "3AsFFdxxoZNUccFYrR5N2xLJRwaUZL4GzJ",
"isChange": false,
"isPayGo": true,
"value": 49748,
"valueString": "49748"
},
{
"address": "38PkV5YJn8MJt2LSMizMDt5v7GNgbVgwfi",
"isChange": false,
"isPayGo": false,
"value": -29900000,
"valueString": "-29900000"
},
{
"address": "3MhXFrdb2fybstxuEmqeXzF1fj3jFixHLG",
"isChange": false,
"isPayGo": false,
"value": 19899320,
"valueString": "19899320",
"wallet": "5b1187baca2f2d590746dd5c8db36b1f"
},
{
"address": "3LGyFqxHTG2VKPDdApKasW5jbehmVvTYb8",
"isChange": true,
"isPayGo": false,
"value": 9950116,
"valueString": "9950116"
}
],
"feeString": "816",
"height": 534698,
"history": [
{
"action": "confirmed",
"date": "2018-06-14T22:09:40.073Z"
},
{
"action": "unconfirmed",
"date": "2018-06-14T21:57:57.225Z"
},
{
"action": "created",
"date": "2018-06-14T21:57:57.225Z"
}
],
"id": "5b22e4e58560ee5e553bb9896a82e3d6",
"inputs": [
{
"address": "38PkV5YJn8MJt2LSMizMDt5v7GNgbVgwfi",
"chain": 0,
"id": "1a919a3e6709674f0da18cd5dcececd608e7ec4447ba2131865108bf68604182:2",
"index": 0,
"isSegwit": false,
"redeemScript": "5221029bd8e6f59783b7d74af81779a21816cb2d517891e8127a9887fcf45d9c18c5ed2102e41b707bb6945e2cf6a5478b51d137df
39c08b08bbbb4a016974c0832f91c9f02102bfbcb3bd32b3f478c5435b75d1f2919cd041964fe6bce7e6a5b69ad3d6c285d153ae",
"value": 29900000,
"valueString": "29900000",
"wallet": "5a281f75f77c7e3d074a1c9ded65b94c"
}
],
"label": "",
"outputs": [
{
"address": "3LGyFqxHTG2VKPDdApKasW5jbehmVvTYb8",
"chain": 1,
"id": "d95bc5ffa8186d9d8411f8c873a9a9d0b2a183a241ebff397e1e4edebab124ee:0",
"index": 1,
"isSegwit": false,
"redeemScript": "522103a40e6e411e908115741ef5698efc2e59ca29032a7b78d1309d56e3d756edb9b121035a71349577d05a797f9118f5165ffaa0
8cb7a6120086da3af2c64bd657f6b19c2102cc4e572d77144e259589ab03a174ae34f96bd07104e0bf6925321639cf39039053ae",
"value": 9950116,
"valueString": "9950116",
"wallet": "5a281f75f77c7e3d074a1c9ded65b94c"
},
{
"address": "3MhXFrdb2fybstxuEmqeXzF1fj3jFixHLG",
"chain": 0,
"id": "d95bc5ffa8186d9d8411f8c873a9a9d0b2a183a241ebff397e1e4edebab124ee:1",
"index": 0,
"isSegwit": false,
"redeemScript": "522103e39066d7ee838e56e675b319c0a9cea414f8144f9022246dc3392719da4a5af921025f4b261ff62de1fc61c3bfcd0a870d8bcbb38e96f2dd6d7577892c1bf4cc3f4c21026cc4eadc29c5a16302edd28c042e2f0908211eba48ca924d06fbe84a74e9cdc153ae",
"value": 19899320,
"valueString": "19899320",
"wallet": "5b1187baca2f2d590746dd5c8db36b1f"
},
{
"address": "3AsFFdxxoZNUccFYrR5N2xLJRwaUZL4GzJ",
"chain": 0,
"id": "d95bc5ffa8186d9d8411f8c873a9a9d0b2a183a241ebff397e1e4edebab124ee:2",
"index": 21771,
"isSegwit": false,
"redeemScript": "5221035557e0763e6b35ffab9c30d775b751c89b07df727b2f0b58321977c862c45f572102607697e20004ab49d5a06d56900f00802c811426c317abca7b22133bc51c03cb2103c7c655b92b12226e382ca0384877cf38d3117e32edac2bc54aad3f8e52576fe153ae",
"value": 49748,
"valueString": "49748",
"wallet": "59a5ba7dd8f8477e1262e0b47dd3db52"
}
],
"payGoFee": 0,
"payGoFeeString": "0",
"state": "confirmed",
"tags": [
"5b1187baca2f2d590746dd5c8db36b1f"
],
"txid": "d95bc5ffa8186d9d8411f8c873a9a9d0b2a183a241ebff397e1e4edebab124ee",
"unconfirmedTime": "2018-06-14T21:57:57.225Z",
"usd": 178.140702572,
"usdRate": 895.21,
"value": 19899320,
"valueString": "19899320",
"wallet": "5b1187baca2f2d590746dd5c8db36b1f"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment