-
Notifications
You must be signed in to change notification settings - Fork 0
/
Insomnia_example_payloads.json
1 lines (1 loc) · 26.7 KB
/
Insomnia_example_payloads.json
1
{"_type":"export","__export_format":4,"__export_date":"2022-08-10T03:24:55.148Z","__export_source":"insomnia.desktop.app:v2022.5.0","resources":[{"_id":"req_88b2a5157fdc454593ac43b65a6b203e","parentId":"fld_0ecbdcd5c26540cfa484ae487804f396","modified":1654200931979,"created":1654200813695,"url":"127.0.0.1:8080/optional/health","name":"optional/health","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1654200813695,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_0ecbdcd5c26540cfa484ae487804f396","parentId":"wrk_eec0c64c944c4cf7a0ada0798ee37791","modified":1654200876356,"created":1654200789258,"name":"Optional","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1654200789258,"_type":"request_group"},{"_id":"wrk_eec0c64c944c4cf7a0ada0798ee37791","parentId":null,"modified":1653686383877,"created":1653686383877,"name":"New Document","description":"","scope":"design","_type":"workspace"},{"_id":"req_f384ba010bdc4bd0885a798eb6c0000d","parentId":"fld_0ecbdcd5c26540cfa484ae487804f396","modified":1654200934201,"created":1654200842281,"url":"127.0.0.1:8080/optional/synced","name":"optional/synced","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1653986153290.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_388e834fdef742a882f1e327b2ce58d8","parentId":"fld_1f4b4d7d46014f2e8b9c064d8a9e3012","modified":1660101299870,"created":1653691496903,"url":"127.0.0.1:8080/account/balance","name":"account/balance","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"network_identifier\": {\n \"blockchain\": \"Bitcoin\",\n \"network\": \"Mainnet\"\n },\n \"account_identifier\": {\n \"address\": \"0x13A1W4jLPP75pzvn2qJ5KyyqG3qPSpb9jM\",\n \"metadata\": {}\n },\n \"block_identifier\": {\n \"index\": 300,\n \"hash\": \"0000000062b69e4a2c3312a5782d7798b0711e9ebac065cd5d19f946439f8609\"\n },\n \"currencies\": [\n {\n \"symbol\": \"BTC\",\n \"decimals\": 8,\n \"metadata\": {\n \"Issuer\": \"Satoshi\"\n }\n }\n ]\n}\n"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_3f9678d7637e456da2fcaedd8eafb6b0"}],"authentication":{},"metaSortKey":-1653687565229.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_1f4b4d7d46014f2e8b9c064d8a9e3012","parentId":"fld_17d709258d884fbcb035aa9ee580401c","modified":1653856615775,"created":1653691480953,"name":"Account","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1653687858716,"_type":"request_group"},{"_id":"fld_17d709258d884fbcb035aa9ee580401c","parentId":"wrk_eec0c64c944c4cf7a0ada0798ee37791","modified":1653856601878,"created":1653856601878,"name":"Data","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1653856601878,"_type":"request_group"},{"_id":"req_ee50941d35e94c9a88973c6087665a2e","parentId":"fld_1f4b4d7d46014f2e8b9c064d8a9e3012","modified":1660100052066,"created":1653764302880,"url":"127.0.0.1:8080/account/coins","name":"account/coins","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"network_identifier\": {\n \"blockchain\": \"Bitcoin\",\n \"network\": \"Mainnet\"\n },\n \"account_identifier\": {\n \"address\": \"0x3a065000ab4183c6bf581dc1e55a605455fc6d61\",\n \"sub_account\": {\n \"address\": \"0x6b175474e89094c44da98b954eedeac495271d0f\",\n \"metadata\": {}\n },\n \"metadata\": {}\n },\n \"include_mempool\": true,\n \"currencies\": [\n {\n \"symbol\": \"BTC\",\n \"decimals\": 8,\n \"metadata\": {\n \"Issuer\": \"Satoshi\"\n }\n }\n ]\n}\n"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_3f9678d7637e456da2fcaedd8eafb6b0"}],"authentication":{},"metaSortKey":-1653687368340.625,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_ccb1218cc8d84df89c5c47cce4b70fca","parentId":"fld_12ff2f7bcc524876bcb4a617fcc7e052","modified":1660100613398,"created":1653853740613,"url":"127.0.0.1:8080/block","name":"block","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"network_identifier\": {\n \"blockchain\": \"Bitcoin\",\n \"network\": \"Mainnet\"\n },\n \"block_identifier\": {\n \"index\": 100\n }\n}\n"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_3f9678d7637e456da2fcaedd8eafb6b0"}],"authentication":{},"metaSortKey":-1653686580784.125,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_12ff2f7bcc524876bcb4a617fcc7e052","parentId":"fld_17d709258d884fbcb035aa9ee580401c","modified":1653856606773,"created":1653853701932,"name":"Block","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1653687858666,"_type":"request_group"},{"_id":"req_a8610d2a4bf84ce9bd49df316b47ea83","parentId":"fld_12ff2f7bcc524876bcb4a617fcc7e052","modified":1660095833547,"created":1653855149285,"url":"127.0.0.1:8080/block/transaction","name":"block/transaction","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"network_identifier\": {\n \"blockchain\": \"Bitcoin\",\n \"network\": \"Mainnet\"\n \n },\n \"block_identifier\": {\n \"index\": 100,\n \"hash\": \"000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a\"\n },\n \"transaction_identifier\": {\n \"hash\": \"2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866\"\n }\n}\n"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_3f9678d7637e456da2fcaedd8eafb6b0"}],"authentication":{},"metaSortKey":-1653686482339.5625,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c788af8381d0432fba3030d8d622e696","parentId":"fld_d00e10d673894ea9887f764713956d35","modified":1660095895286,"created":1653855533057,"url":"127.0.0.1:8080/mempool","name":"mempool","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"network_identifier\": {\n \"blockchain\": \"Bitcoin\",\n \"network\": \"Mainnet\"\n },\n \"metadata\": {}\n}\n"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_3f9678d7637e456da2fcaedd8eafb6b0"}],"authentication":{},"metaSortKey":-1653686531561.8438,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_d00e10d673894ea9887f764713956d35","parentId":"fld_17d709258d884fbcb035aa9ee580401c","modified":1653856620051,"created":1653855476090,"name":"Mempool","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1653687858659.75,"_type":"request_group"},{"_id":"req_f646f5b9219a48eda0e0b649edab30c4","parentId":"fld_d00e10d673894ea9887f764713956d35","modified":1660100105694,"created":1653855671135,"url":"127.0.0.1:8080/mempool/transaction","name":"mempool/transaction","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"network_identifier\": {\n \"blockchain\": \"Bitcoin\",\n \"network\": \"Mainnet\"\n },\n \"transaction_identifier\": {\n \"hash\": \"0x2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866\"\n }\n}\n"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_3f9678d7637e456da2fcaedd8eafb6b0"}],"authentication":{},"metaSortKey":-1653686506950.7031,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_7f716b1f778546328ca84724ed2739d8","parentId":"fld_ce3453c8571c41dea5988d93e50271f8","modified":1660096005753,"created":1653687959008,"url":"127.0.0.1:8080/network/list","name":"network/list","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"metadata\": {}\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_3f9678d7637e456da2fcaedd8eafb6b0"}],"authentication":{},"metaSortKey":-1653687959008,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_ce3453c8571c41dea5988d93e50271f8","parentId":"fld_17d709258d884fbcb035aa9ee580401c","modified":1653856611342,"created":1653687951121,"name":"Network","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1653687858653.5,"_type":"request_group"},{"_id":"req_94465ac5fa14457294bc63c852aa9450","parentId":"fld_ce3453c8571c41dea5988d93e50271f8","modified":1660101687547,"created":1653688048642,"url":"127.0.0.1:8080/network/options","name":"network/options","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"network_identifier\": {\n \"blockchain\": \"Bitcoin\",\n \"network\": \"Mainnet\"\n },\n \"metadata\": {}\n}\n"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_3f9678d7637e456da2fcaedd8eafb6b0"}],"authentication":{},"metaSortKey":-1653687171451.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_699a47c46f9a47db8becd992ab501048","parentId":"fld_ce3453c8571c41dea5988d93e50271f8","modified":1660097391417,"created":1653688087342,"url":"127.0.0.1:8080/network/status","name":"network/status","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"network_identifier\": {\n \"blockchain\": \"Bitcoin\",\n \"network\": \"Mainnet\"\n },\n \"metadata\": {}\n}\n"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_3f9678d7637e456da2fcaedd8eafb6b0"}],"authentication":{},"metaSortKey":-1653686777673.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_06f82c64d4f146c5b3ad269f4a89b415","parentId":"wrk_eec0c64c944c4cf7a0ada0798ee37791","modified":1660100132185,"created":1653862737187,"url":"127.0.0.1:8080/call","name":"call","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"network_identifier\": {\n \"blockchain\": \"Bitcoin\",\n \"network\": \"Mainnet\"\n },\n \"method\": \"getblock\",\n \"parameters\": {\n \"blockhash\": \"000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a\",\n \"verbosity\": 1\n }\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_3f9678d7637e456da2fcaedd8eafb6b0"}],"authentication":{},"metaSortKey":-1653771492886.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_ceac93d5f6c0b2eaf28d26b62ccfb63b4a3245e7","parentId":"wrk_eec0c64c944c4cf7a0ada0798ee37791","modified":1653686383889,"created":1653686383889,"name":"Base Environment","data":{},"dataPropertyOrder":null,"color":null,"isPrivate":false,"metaSortKey":1653686383889,"_type":"environment"},{"_id":"jar_ceac93d5f6c0b2eaf28d26b62ccfb63b4a3245e7","parentId":"wrk_eec0c64c944c4cf7a0ada0798ee37791","modified":1653686383892,"created":1653686383892,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_10808d2062cf42f09e3cd9d52beb8ae9","parentId":"wrk_eec0c64c944c4cf7a0ada0798ee37791","modified":1653856632963,"created":1653686383886,"fileName":"Rosetta-Bitcoin","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","parentId":"wrk_eec0c64c944c4cf7a0ada0798ee37791","modified":1660079542884,"created":1660079542884,"name":"Tests","_type":"unit_test_suite"},{"_id":"ut_f4984e8ec68f48eeb641e19d6eb4eb5a","parentId":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","modified":1660100969971,"created":1660079571948,"requestId":"req_388e834fdef742a882f1e327b2ce58d8","name":"account/balance","code":"const expected_raw = {\n\t\"block_identifier\": {\n\t\t\"index\": 300,\n\t\t\"hash\": \"0000000062b69e4a2c3312a5782d7798b0711e9ebac065cd5d19f946439f8609\"\n\t},\n\t\"balances\": [\n\t\t{\n\t\t\t\"value\": \"0\",\n\t\t\t\"currency\": {\n\t\t\t\t\"symbol\": \"BTC\",\n\t\t\t\t\"decimals\": 8\n\t\t\t}\n\t\t}\n\t]\n};\n\nconst response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);\nlet data = JSON.stringify(JSON.parse(response1.data));\nlet expected = JSON.stringify(expected_raw);\nexpect(data).to.equal(expected);","_type":"unit_test"},{"_id":"ut_b225d476a61248ae8d9ef60518b66f7c","parentId":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","modified":1660100542711,"created":1660081287621,"requestId":"req_ee50941d35e94c9a88973c6087665a2e","name":"account/coins","code":"// endpoint not implemented on coinbase\nconst expected_raw = {\n\t\"code\": 0,\n\t\"message\": \"mempool coins not supported\",\n\t\"retriable\": false\n};\n\nconst response1 = await insomnia.send();\nexpect(response1.status).to.equal(500);\nlet data = JSON.stringify(JSON.parse(response1.data));\nlet expected = JSON.stringify(expected_raw);\nexpect(data).to.equal(expected);","_type":"unit_test"},{"_id":"ut_fbf8ed91c97a49f28afc0da9edf20ce1","parentId":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","modified":1660100546771,"created":1660081376598,"requestId":"req_ccb1218cc8d84df89c5c47cce4b70fca","name":"block","code":"const expected_raw = {\n\t\"block\": {\n\t\t\"block_identifier\": {\n\t\t\t\"index\": 100,\n\t\t\t\"hash\": \"000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a\"\n\t\t},\n\t\t\"parent_block_identifier\": {\n\t\t\t\"index\": 99,\n\t\t\t\"hash\": \"00000000cd9b12643e6854cb25939b39cd7a1ad0af31a9bd8b2efe67854b1995\"\n\t\t},\n\t\t\"timestamp\": 1231660825000,\n\t\t\"transactions\": [\n\t\t\t{\n\t\t\t\t\"transaction_identifier\": {\n\t\t\t\t\t\"hash\": \"2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866\"\n\t\t\t\t},\n\t\t\t\t\"operations\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"operation_identifier\": {\n\t\t\t\t\t\t\t\"index\": 0,\n\t\t\t\t\t\t\t\"network_index\": 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"COINBASE\",\n\t\t\t\t\t\t\"status\": \"SUCCESS\",\n\t\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\t\"coinbase\": \"04ffff001d014d\",\n\t\t\t\t\t\t\t\"sequence\": 4294967295\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"operation_identifier\": {\n\t\t\t\t\t\t\t\"index\": 1,\n\t\t\t\t\t\t\t\"network_index\": 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"OUTPUT\",\n\t\t\t\t\t\t\"status\": \"SUCCESS\",\n\t\t\t\t\t\t\"account\": {\n\t\t\t\t\t\t\t\"address\": \"4104e70a02f5af48a1989bf630d92523c9d14c45c75f7d1b998e962bff6ff9995fc5bdb44f1793b37495d80324acba7c8f537caaf8432b8d47987313060cc82d8a93ac\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"amount\": {\n\t\t\t\t\t\t\t\"value\": \"5000000000\",\n\t\t\t\t\t\t\t\"currency\": {\n\t\t\t\t\t\t\t\t\"symbol\": \"BTC\",\n\t\t\t\t\t\t\t\t\"decimals\": 8\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"coin_change\": {\n\t\t\t\t\t\t\t\"coin_identifier\": {\n\t\t\t\t\t\t\t\t\"identifier\": \"2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866:0\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"coin_action\": \"coin_created\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\t\"scriptPubKey\": {\n\t\t\t\t\t\t\t\t\"asm\": \"04e70a02f5af48a1989bf630d92523c9d14c45c75f7d1b998e962bff6ff9995fc5bdb44f1793b37495d80324acba7c8f537caaf8432b8d47987313060cc82d8a93 OP_CHECKSIG\",\n\t\t\t\t\t\t\t\t\"hex\": \"4104e70a02f5af48a1989bf630d92523c9d14c45c75f7d1b998e962bff6ff9995fc5bdb44f1793b37495d80324acba7c8f537caaf8432b8d47987313060cc82d8a93ac\",\n\t\t\t\t\t\t\t\t\"type\": \"pubkey\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"metadata\": {\n\t\t\t\t\t\"size\": 134,\n\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\"vsize\": 134,\n\t\t\t\t\t\"weight\": 536\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t\"metadata\": {\n\t\t\t\"bits\": \"1d00ffff\",\n\t\t\t\"difficulty\": 1.0,\n\t\t\t\"mediantime\": 1231656204,\n\t\t\t\"merkleroot\": \"2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866\",\n\t\t\t\"nonce\": 1573057331,\n\t\t\t\"size\": 215,\n\t\t\t\"version\": 1,\n\t\t\t\"weight\": 860\n\t\t}\n\t}\n};\n\nconst response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);\nlet data = JSON.stringify(JSON.parse(response1.data));\nlet expected = JSON.stringify(expected_raw);\nexpect(data).to.equal(expected);","_type":"unit_test"},{"_id":"ut_ff867a737daf4f4bbe18a35eb2a0162a","parentId":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","modified":1660101511566,"created":1660095795709,"requestId":"req_a8610d2a4bf84ce9bd49df316b47ea83","name":"block/transaction","code":"const expected_raw = {\n\t\"transaction\": {\n\t\t\"transaction_identifier\": {\n\t\t\t\"hash\": \"2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866\"\n\t\t},\n\t\t\"operations\": [\n\t\t\t{\n\t\t\t\t\"operation_identifier\": {\n\t\t\t\t\t\"index\": 0,\n\t\t\t\t\t\"network_index\": 0\n\t\t\t\t},\n\t\t\t\t\"type\": \"COINBASE\",\n\t\t\t\t\"status\": \"SUCCESS\",\n\t\t\t\t\"metadata\": {\n\t\t\t\t\t\"coinbase\": \"04ffff001d014d\",\n\t\t\t\t\t\"sequence\": 4294967295\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"operation_identifier\": {\n\t\t\t\t\t\"index\": 1,\n\t\t\t\t\t\"network_index\": 0\n\t\t\t\t},\n\t\t\t\t\"type\": \"OUTPUT\",\n\t\t\t\t\"status\": \"SUCCESS\",\n\t\t\t\t\"account\": {\n\t\t\t\t\t\"address\": \"4104e70a02f5af48a1989bf630d92523c9d14c45c75f7d1b998e962bff6ff9995fc5bdb44f1793b37495d80324acba7c8f537caaf8432b8d47987313060cc82d8a93ac\"\n\t\t\t\t},\n\t\t\t\t\"amount\": {\n\t\t\t\t\t\"value\": \"5000000000\",\n\t\t\t\t\t\"currency\": {\n\t\t\t\t\t\t\"symbol\": \"BTC\",\n\t\t\t\t\t\t\"decimals\": 8\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"coin_change\": {\n\t\t\t\t\t\"coin_identifier\": {\n\t\t\t\t\t\t\"identifier\": \"2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866:0\"\n\t\t\t\t\t},\n\t\t\t\t\t\"coin_action\": \"coin_created\"\n\t\t\t\t},\n\t\t\t\t\"metadata\": {\n\t\t\t\t\t\"scriptPubKey\": {\n\t\t\t\t\t\t\"asm\": \"04e70a02f5af48a1989bf630d92523c9d14c45c75f7d1b998e962bff6ff9995fc5bdb44f1793b37495d80324acba7c8f537caaf8432b8d47987313060cc82d8a93 OP_CHECKSIG\",\n\t\t\t\t\t\t\"hex\": \"4104e70a02f5af48a1989bf630d92523c9d14c45c75f7d1b998e962bff6ff9995fc5bdb44f1793b37495d80324acba7c8f537caaf8432b8d47987313060cc82d8a93ac\",\n\t\t\t\t\t\t\"type\": \"pubkey\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t\"metadata\": {\n\t\t\t\"size\": 134,\n\t\t\t\"version\": 1,\n\t\t\t\"vsize\": 134,\n\t\t\t\"weight\": 536\n\t\t}\n\t}\n};\n\nconst response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);\nlet data = JSON.stringify(JSON.parse(response1.data));\nlet expected = JSON.stringify(expected_raw);\nexpect(data).to.equal(expected);","_type":"unit_test"},{"_id":"ut_43ee076f9b2440b7b3ee748292be1532","parentId":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","modified":1660100555080,"created":1660095851194,"requestId":"req_c788af8381d0432fba3030d8d622e696","name":"mempool","code":"const response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);\nlet data = JSON.stringify(JSON.parse(response1.data));\nexpect(data).to.equal(\"{}\");","_type":"unit_test"},{"_id":"ut_f202ee7bf95a4d369c89f07b1763f90c","parentId":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","modified":1660100559870,"created":1660095906697,"requestId":"req_f646f5b9219a48eda0e0b649edab30c4","name":"mempool/transaction","code":"// endpoint not implemented in coinbase\nconst expected_raw = {\n\t\"code\": 16,\n\t\"message\": \"Transaction not found\",\n\t\"retriable\": false,\n\t\"details\": {\n\t\t\"context\": \"unable to find transaction 0x2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866\"\n\t}\n};\n\nconst response1 = await insomnia.send();\nexpect(response1.status).to.equal(500);\nlet data = JSON.stringify(JSON.parse(response1.data));\nlet expected = JSON.stringify(expected_raw);\nexpect(data).to.equal(expected);","_type":"unit_test"},{"_id":"ut_a520dad805af4498912113a5aea5c041","parentId":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","modified":1660100564128,"created":1660095962914,"requestId":"req_7f716b1f778546328ca84724ed2739d8","name":"network/list","code":"const expected_raw = {\n\t\"network_identifiers\": [\n\t\t{\n\t\t\t\"blockchain\": \"BITCOIN\",\n\t\t\t\"network\": \"MAINNET\"\n\t\t}\n\t]\n};\n\nconst response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);\nlet data = JSON.stringify(JSON.parse(response1.data));\nlet expected = JSON.stringify(expected_raw);\nexpect(data).to.equal(expected);","_type":"unit_test"},{"_id":"ut_ee4da7891b664b7998e2eb675b97e28f","parentId":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","modified":1660101716191,"created":1660096020611,"requestId":"req_94465ac5fa14457294bc63c852aa9450","name":"network/options","code":"const expected_allow = {\n\t\"operation_statuses\": [\n\t\t{\n\t\t\t\"status\": \"SUCCESS\",\n\t\t\t\"successful\": true\n\t\t},\n\t\t{\n\t\t\t\"status\": \"SKIPPED\",\n\t\t\t\"successful\": false\n\t\t}\n\t],\n\t\"operation_types\": [\n\t\t\"INPUT\",\n\t\t\"OUTPUT\",\n\t\t\"COINBASE\"\n\t],\n\t\"errors\": [\n\t\t{\n\t\t\t\"code\": 0,\n\t\t\t\"message\": \"Endpoint not implemented\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 1,\n\t\t\t\"message\": \"Endpoint unavailable offline\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 2,\n\t\t\t\"message\": \"Node is not ready\",\n\t\t\t\"retriable\": true\n\t\t},\n\t\t{\n\t\t\t\"code\": 3,\n\t\t\t\"message\": \"Node error\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 4,\n\t\t\t\"message\": \"Block not found\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 5,\n\t\t\t\"message\": \"Unable to derive address\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 6,\n\t\t\t\"message\": \"Unable to parse intent\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 7,\n\t\t\t\"message\": \"Unable to parse intermediate result\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 8,\n\t\t\t\"message\": \"Missing ScriptPubKeys\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 9,\n\t\t\t\"message\": \"Coin is invalid\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 10,\n\t\t\t\"message\": \"Unable to decode address\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 11,\n\t\t\t\"message\": \"Unable to decode ScriptPubKey\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 12,\n\t\t\t\"message\": \"Unable to calculate signature hash\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 13,\n\t\t\t\"message\": \"Script type is not supported\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 14,\n\t\t\t\"message\": \"Unable to compute PK script\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 15,\n\t\t\t\"message\": \"Unable to get coins\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 16,\n\t\t\t\"message\": \"Transaction not found\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 17,\n\t\t\t\"message\": \"Could not get suggested fee rate\",\n\t\t\t\"retriable\": false\n\t\t},\n\t\t{\n\t\t\t\"code\": 18,\n\t\t\t\"message\": \"Unable to get balance\",\n\t\t\t\"retriable\": false\n\t\t}\n\t],\n\t\"historical_balance_lookup\": true,\n\t\"mempool_coins\": false\n};\n\nconst response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);\nlet data = JSON.parse(response1.data);\nexpect(data.version.rosetta_version).to.be.an(\"string\");\nexpect(data.version.node_version).to.be.an(\"string\");\nexpect(data.version.middleware_version).to.be.an(\"string\");\nlet allow = JSON.stringify(data.allow);\nlet expected = JSON.stringify(expected_allow);\n\nexpect(allow).to.equal(expected);","_type":"unit_test"},{"_id":"ut_ff0835c176174062ab84519990959b45","parentId":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","modified":1660101562646,"created":1660096165895,"requestId":"req_699a47c46f9a47db8becd992ab501048","name":"network/status","code":"const response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);\nlet data = JSON.parse(response1.data);\n\nexpect(data.current_block_identifier.index).to.be.an(\"number\");\nexpect(data.current_block_identifier.hash).to.be.an(\"string\");\nexpect(data.current_block_timestamp).to.be.an(\"number\");\nexpect(data.genesis_block_identifier.index).to.equal(0);\nexpect(data.genesis_block_identifier.hash).to.equal(\"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f\");\nfor (var peer of data.peers) {\n expect(peer.peer_id).to.be.an(\"string\");\n expect(peer.metadata.addr).to.be.an(\"string\");\n expect(peer.metadata.banscore).to.be.an(\"number\");\n expect(peer.metadata.lastrecv).to.be.an(\"number\");\n expect(peer.metadata.lastsend).to.be.an(\"number\");\n expect(peer.metadata.relaytxes).to.be.an(\"boolean\");\n expect(peer.metadata.startingheight).to.be.an(\"number\");\n expect(peer.metadata.subver).to.be.an(\"string\");\n expect(peer.metadata.synced_blocks).to.be.an(\"number\");\n expect(peer.metadata.synced_headers).to.be.an(\"number\");\n expect(peer.metadata.version).to.be.an(\"number\");\n}","_type":"unit_test"},{"_id":"ut_0ee8bb5e2b4548678817368231d5e8ad","parentId":"uts_e1a8bee63dc4435c8801fb9e3f3b11a6","modified":1660101560939,"created":1660096990873,"requestId":"req_06f82c64d4f146c5b3ad269f4a89b415","name":"call","code":"// endpoint not implemented in coinbase\nconst response1 = await insomnia.send();\nexpect(response1.status).to.equal(500);","_type":"unit_test"}]}