{"id":19720482,"url":"https://github.com/xdagger/xdag-python-example","last_synced_at":"2025-02-27T17:47:24.312Z","repository":{"id":92608792,"uuid":"164007688","full_name":"XDagger/xdag-python-example","owner":"XDagger","description":"XDAG Python Example","archived":false,"fork":false,"pushed_at":"2019-01-03T18:52:24.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T15:53:03.973Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XDagger.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-03T18:17:16.000Z","updated_at":"2020-07-28T18:19:58.000Z","dependencies_parsed_at":"2023-04-16T11:00:44.160Z","dependency_job_id":null,"html_url":"https://github.com/XDagger/xdag-python-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fxdag-python-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fxdag-python-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fxdag-python-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fxdag-python-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XDagger","download_url":"https://codeload.github.com/XDagger/xdag-python-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241040686,"owners_count":19898914,"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-11T23:11:36.662Z","updated_at":"2025-02-27T17:47:24.288Z","avatar_url":"https://github.com/XDagger.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XDAG Python Example\n\nCurrently there are three ways to integrate XDAG wallet.\n1. Use exchange wallet address and user's wallet address as combination to distingush different users.\n1. Maintain multi wallets by yourself program.\n1. Use decimal numbers to distingush different users.\n\nThis example just demonstrates the first way.\n\nThe main repo for XDAG: https://github.com/xdagger/xdag  \nAPI Doc: https://explorer.xdag.io/api-docs  \nExplorer: https://explorer.xdag.io  \nGetting Started: https://github.com/XDagger/xdag/wiki/Getting-started  \n\nHow to setup testnet: \n1. Build your binary version following https://github.com/XDagger/xdag/wiki/Getting-started\n1. If you run nodes on the same machine, just copy those files to different folders.\n1. Currently, to run a testnet just need two nodes.\n1. Modify the `netdb-white-testnet.txt` and `netdb-testnet.txt` according to your configuration.\n1. The launch command is `./xdag -t -z RAM -v 7 -p 127.0.0.1:\u003cport for node\u003e -P 127.0.0.1:\u003cport for miners\u003e:64:64:64:1:5:5:0.5 -rpc-enable -disable-refresh`\n   \nFor example:\n\nIf wanna launch two nodes.\n1. Copy those files to two folders, let's assume folder `xdag1` and `xdag2`.\n1. Modify the `netdb-white-testnet.txt` and `netdb-testnet.txt` in both folders.\n\u003e127.0.0.1:3366  \n\u003e127.0.0.1:3367  \n\n1. In the folder for the first node run this command `./xdag -t -z RAM -v 7 -p 127.0.0.1:3366 -P 127.0.0.1:8888:64:64:64:1:5:5:0.5 -disable-refresh` to launch one node.\n1. In the folder for the second node run this command `./xdag -t -z RAM -v 7 -p 127.0.0.1:3367 -P 127.0.0.1:8889:64:64:64:1:5:5:0.5 -disable-refresh` to launch another node.\n1. Make a new folder for wallet, and copy those files to the new folder.\n1. Launch your wallet by command `./xdag -t 127.0.0.1:8888` to connect to node `xdag1`. \n1. For sure you can make many wallets as you want by make different folders and connect to `xdag1` node by using `127.0.0.1:8888` or `xdag2` node by using `127.0.0.1:8889`.\n   \n   \nHint:\n1. Currently https://explorer.xdag.io is only for main net. For your local testnet, you have to check the instructions about how to setup explorer in repo https://github.com/XDagger/explorer.\n2. If have any problem, please join XDAG Community discord channel https://discord.gg/YxXUVQJ. Or contact me through XDAG Developers Chinese QQ Group `676955224`.\n3. This example is for Python3.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdagger%2Fxdag-python-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdagger%2Fxdag-python-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdagger%2Fxdag-python-example/lists"}