{"id":20796627,"url":"https://github.com/gotocva/cryptorpc","last_synced_at":"2025-07-09T20:35:09.964Z","repository":{"id":43984198,"uuid":"244315317","full_name":"gotocva/CryptoRpc","owner":"gotocva","description":"Simple easy node JS Crypto RPC server for create address, Bitcoin transfer and to check wallet balance.","archived":false,"fork":false,"pushed_at":"2022-12-10T20:09:00.000Z","size":1273,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T01:44:21.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gotocva.png","metadata":{"files":{"readme":"readme.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-02T08:14:09.000Z","updated_at":"2020-03-02T10:50:21.000Z","dependencies_parsed_at":"2023-01-26T08:30:36.229Z","dependency_job_id":null,"html_url":"https://github.com/gotocva/CryptoRpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gotocva/CryptoRpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2FCryptoRpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2FCryptoRpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2FCryptoRpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2FCryptoRpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gotocva","download_url":"https://codeload.github.com/gotocva/CryptoRpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2FCryptoRpc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502992,"owners_count":23618673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T16:28:24.974Z","updated_at":"2025-07-09T20:35:09.936Z","avatar_url":"https://github.com/gotocva.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n## Crypto RPC library\n\n\n| __Cryptocurrency__ | __Coin__ | __Environment__ |\n|--------------------|----------|-----------------|\n| Bitcoin            | tbtc     | test3           |\n\n\n## Implementation steps\n```\ngit clone https://github.com/gotocva/CryptoRpc.git\ncd CryptoRpc\nnpm install \nnode index.js\n```\n\nTo create address\n\nhttp://127.0.0.1:5080\n\nparams \n``` json\n{\n\t\"id\":1,\n\t\"jsonrpc\":\"2.0\",\n    \"method\":\"CREATE_ADDRESS\",\n    \"params\" : {\n        \"coin\" : \"tbtc\",\n        \"environment\" : \"test3\"\n    }\n}\n```\nsample response \n``` json\n{\n    \"id\": 1,\n    \"jsonrpc\": \"2.0\",\n    \"result\": {\n        \"private\": \"db8251a01500f15ef3c5215f3083f4f54a0bd4081b63a3c7649d9a162c3b6e61\",\n        \"public\": \"038b6a891cc3c2f67f59673067371f6ff4d751768c14cdb6b1bc3038188a378673\",\n        \"address\": \"mzu31ZL5SUtCjYHSmBpmz8JoBgabizM56m\",\n        \"wif\": \"cUwQ52U52riXXxp7qssqghoDCTZBE7fDaYG8V9YVCX2dauKqPTvF\"\n    }\n}\n```\nTo get balance of a address\nhttp://127.0.0.1:5080\n\nsample params \n``` json\n{\n\t\"id\":1,\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"GET_BALANCE\",\n\t\"params\" : {\n        \"coin\" : \"tbtc\",\n        \"environment\" : \"test3\",\n    \t\"address\" : \"n3Kix7s5u2dGDbmGg1HgdwNqY3XWTE8Tqm\"\n\t}\n}\n```\n\nsample response \n``` json\n{\n    \"id\": 1,\n    \"jsonrpc\": \"2.0\",\n    \"result\": {\n        \"address\": \"n3Kix7s5u2dGDbmGg1HgdwNqY3XWTE8Tqm\",\n        \"total_received\": 54000,\n        \"total_sent\": 50000,\n        \"balance\": 4000,\n        \"unconfirmed_balance\": 0,\n        \"final_balance\": 4000,\n        \"n_tx\": 7,\n        \"unconfirmed_n_tx\": 0,\n        \"final_n_tx\": 7\n    }\n}\n\n```\n\nTo create transaction \n\nhttp://127.0.0.1:5080\n\nsample params \n``` json\n{\n\t\"id\":1,\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"CREATE_TRANSACTION\",\n\t\"params\" : {\n        \"coin\" : \"tbtc\",\n        \"environment\" : \"test3\",\n    \t\"from\" : \"n3Kix7s5u2dGDbmGg1HgdwNqY3XWTE8Tqm\",\n    \t\"to\" : \"mtcJYtesgcKZTWWoRzCaE528JHo6TgdbiA\",\n    \t\"amount\" : 0.0001,\n    \t\"private_key\" : \"4855cb2bcadabdcb3a07c2f22724338fe87994bf6bc237a74703b085913d6500\"\n\t}\n}\n```\n\nsample error message\n``` json\n{\n    \"id\": 1,\n    \"jsonrpc\": \"2.0\",\n    \"error\": {\n        \"status\": false,\n        \"error_message\": \"Minimum amount for transaction is 0.0001\"\n    }\n}\n```\nsample success response \n``` json\n{\n    \"id\": 1,\n    \"jsonrpc\": \"2.0\",\n    \"result\": {\n        \"block_height\": -1,\n        \"block_index\": -1,\n        \"hash\": \"18962907c06529af374f9b091feb1f03194cb2a6ac524986b65dad96c97d246f\",\n        \"addresses\": [\n            \"n3Kix7s5u2dGDbmGg1HgdwNqY3XWTE8Tqm\",\n            \"mtcJYtesgcKZTWWoRzCaE528JHo6TgdbiA\"\n        ],\n        \"total\": 10000,\n        \"fees\": 15000,\n        \"size\": 192,\n        \"preference\": \"high\",\n        \"relayed_by\": \"103.224.32.210\",\n        \"received\": \"2020-03-02T08:07:03.356799813Z\",\n        \"ver\": 1,\n        \"double_spend\": false,\n        \"vin_sz\": 1,\n        \"vout_sz\": 1,\n        \"confirmations\": 0,\n        \"inputs\": [\n            {\n                \"prev_hash\": \"9a92936b676870dd2e113e75273ccc1c6bac7b67fbc67bd5cd60352fb88fd646\",\n                \"output_index\": 0,\n                \"script\": \"483045022100bf0ec1e3cb7571f8f1d7cdda86d633dec4d2a9742769ceda57a32321405a9aae0220474dc0018734aec83cabcc3eb803adfb082459679677bac88957264f3b6b1796012102f0626c92e4d6f80c8d8ae0e18f3aaa2aba811e67f4444b59c9e6d878a391eb7f\",\n                \"output_value\": 25000,\n                \"sequence\": 4294967295,\n                \"addresses\": [\n                    \"n3Kix7s5u2dGDbmGg1HgdwNqY3XWTE8Tqm\"\n                ],\n                \"script_type\": \"pay-to-pubkey-hash\",\n                \"age\": 1666318\n            }\n        ],\n        \"outputs\": [\n            {\n                \"value\": 10000,\n                \"script\": \"76a9148f9c9faaf39147cba0890e41d0487abb241a694b88ac\",\n                \"addresses\": [\n                    \"mtcJYtesgcKZTWWoRzCaE528JHo6TgdbiA\"\n                ],\n                \"script_type\": \"pay-to-pubkey-hash\"\n            }\n        ]\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotocva%2Fcryptorpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgotocva%2Fcryptorpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotocva%2Fcryptorpc/lists"}