{"id":17246528,"url":"https://github.com/andreid/miniblockchainapi","last_synced_at":"2026-05-03T12:34:36.977Z","repository":{"id":57552614,"uuid":"155173363","full_name":"AndreiD/MiniBlockchainAPI","owner":"AndreiD","description":"API to send ETH \u0026 Tokens to Ethereum based blockchains.","archived":false,"fork":false,"pushed_at":"2018-11-19T20:52:06.000Z","size":5555,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-23T00:04:30.811Z","etag":null,"topics":["backend","blockchain","erc-20","ethereum","go","solidity","tokens"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreiD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-29T07:59:48.000Z","updated_at":"2021-08-27T06:07:24.000Z","dependencies_parsed_at":"2022-09-26T18:50:42.361Z","dependency_job_id":null,"html_url":"https://github.com/AndreiD/MiniBlockchainAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndreiD/MiniBlockchainAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2FMiniBlockchainAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2FMiniBlockchainAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2FMiniBlockchainAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2FMiniBlockchainAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiD","download_url":"https://codeload.github.com/AndreiD/MiniBlockchainAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2FMiniBlockchainAPI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261386724,"owners_count":23150869,"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":["backend","blockchain","erc-20","ethereum","go","solidity","tokens"],"created_at":"2024-10-15T06:34:16.713Z","updated_at":"2026-05-03T12:34:36.923Z","avatar_url":"https://github.com/AndreiD.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"~~~~\n███╗   ███╗██╗███╗   ██╗██╗    ██████╗ ██╗      ██████╗  ██████╗██╗  ██╗ ██████╗██╗  ██╗ █████╗ ██╗███╗   ██╗\n████╗ ████║██║████╗  ██║██║    ██╔══██╗██║     ██╔═══██╗██╔════╝██║ ██╔╝██╔════╝██║  ██║██╔══██╗██║████╗  ██║\n██╔████╔██║██║██╔██╗ ██║██║    ██████╔╝██║     ██║   ██║██║     █████╔╝ ██║     ███████║███████║██║██╔██╗ ██║\n██║╚██╔╝██║██║██║╚██╗██║██║    ██╔══██╗██║     ██║   ██║██║     ██╔═██╗ ██║     ██╔══██║██╔══██║██║██║╚██╗██║\n██║ ╚═╝ ██║██║██║ ╚████║██║    ██████╔╝███████╗╚██████╔╝╚██████╗██║  ██╗╚██████╗██║  ██║██║  ██║██║██║ ╚████║\n╚═╝     ╚═╝╚═╝╚═╝  ╚═══╝╚═╝    ╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝\n~~~~\n\n## Send ETH \u0026 Tokens API\n\nThis small backend enables you to send ETH \u0026 Tokens to Ethereum based blockchains.\n\n## How to use it\n\n- Step #1: Fork the project and give it a star\n- Step #2: Copy the api_config.example.json to api_config.json and edit it with the link to your blockchain (you can use infura for rinkeby, main-net)\n- Step #3: Build \u0026 run with: go build -o server; ./server\n- Step #4: ??\n- Step #5: Profit!!!\n\n## Note about security:\n\n- This api should run on localhost!\n- If you need to expose it, make a reverse nginx proxy and configure it for https!\n\n## API's\n\n#### GET    /api/v1/\ngeneral info about the connection with the blockchain\n\n#### GET    /api/v1/health\nhealth about how much resources this mini-server takes\n\nparams: address\n\nExample:\n~~~~\ncurl --request GET \\\n  --url 'http://localhost:9090/api/v1/balance/token?contract=0x991c43f15b7d286f473e644df689dc3d722b58b2\u0026address=0x5d924b2D34643B4Eb7D4291fDcb07236963f040f' \\\n  --header 'Content-Type: application/json'\n~~~~\n\n\n#### GET    /api/v1/balance/eth\ngets the ETH balance.\n\nparams: address\n\nExample:\n~~~~\ncurl --request GET \\\n  --url 'http://localhost:9090/api/v1/balance/eth?address=0xF69D65f241a523837c7F37f8B38328176416E771' \\\n  --header 'Content-Type: application/json'\n~~~~\n\n#### GET    /api/v1/balance/token\ngets the token balance.\n\nparams: contract, address\n\nExample:\n~~~~\ncurl --request GET \\\n  --url 'http://localhost:9090/api/v1/balance/token?contract=0x991c43f15b7d286f473e644df689dc3d722b58b2\u0026address=0x5d924b2D34643B4Eb7D4291fDcb07236963f040f' \\\n  --header 'Content-Type: application/json'\n~~~~\n\n#### PUT    /api/v1/tx/send_eth\nsends ETH to an address\n\nparams: to_address, sender_private_key, amount_in_wei\n\nExample:\n~~~~\ncurl --request PUT \\\n  --url 'http://localhost:9090/api/v1/tx/send_eth?to_address=0xF69D65f241a523837c7F37f8B38328176416E771\u0026sender_private_key=908550C596A682C500FE1013EB3CEB5A8421FC62D6FF1F81CCDFEDD69768E560\u0026amount_in_wei=100000000000000000' \\\n  --header 'Content-Type: application/json'\n~~~~\n\n#### PUT    /api/v1/tx/send_token\nsends Tokens to an address\n\nparams: to_address, sender_private_key, contract, amount_in_wei\n\nExample:\n~~~~\ncurl --request PUT \\\n  --url 'http://localhost:9090/api/v1/tx/send_token?to_address=0xF69D65f241a523837c7F37f8B38328176416E771\u0026sender_private_key=908550C596A682C500FE1013EB3CEB5A8421FC62D6FF1F81CCDFEDD69768E560\u0026contract=0x991c43f15b7d286f473e644df689dc3d722b58b2\u0026amount_in_wei=1000000000000000000' \\\n  --header 'Content-Type: application/json'\n~~~~\n\n#### TODO:\n\n  - sanitize inputs\n  - docker ?\n  - any suggestions ?\n\n#### Thanks to:\n\n https://github.com/hunterlong/tokenbalance for the tokens generic bindings.\n\n#### License: GPL-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreid%2Fminiblockchainapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreid%2Fminiblockchainapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreid%2Fminiblockchainapi/lists"}