{"id":19610717,"url":"https://github.com/onflow/flow-account-api","last_synced_at":"2025-07-16T18:40:55.867Z","repository":{"id":103345328,"uuid":"411565209","full_name":"onflow/flow-account-api","owner":"onflow","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-18T18:01:17.000Z","size":49,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":44,"default_branch":"main","last_synced_at":"2025-04-27T22:32:57.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onflow.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":"2021-09-29T07:01:46.000Z","updated_at":"2022-10-09T20:57:08.000Z","dependencies_parsed_at":"2023-07-07T19:01:13.316Z","dependency_job_id":null,"html_url":"https://github.com/onflow/flow-account-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/onflow/flow-account-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Fflow-account-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Fflow-account-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Fflow-account-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Fflow-account-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onflow","download_url":"https://codeload.github.com/onflow/flow-account-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Fflow-account-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265531443,"owners_count":23783242,"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-11T10:32:32.130Z","updated_at":"2025-07-16T18:40:55.851Z","avatar_url":"https://github.com/onflow.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flow Account API\n\nThis API is an intermediary for non-custodial Flow wallets. It has two responsibilities:\n\n- Creating a new account on the behalf of a just-initialized wallet.\n- Maintaining a registry of `publicKey` -\u003e `accountAddress`.\n\n## Running locally\n\nThis project uses Docker Compose and the Flow Emulator to simulate a blockchain environment\non a local machine.\n\nRun this command to start the Docker Compose network:\n\n```shell script\nmake run\n```\n\n### Run with emulator outside of Docker\n\nStart the emulator using the `flow.json` file in this directory:\n\n```shell script\nflow emulator start\n```\n\nIn a separate process, launch the API:\n\n```shell script\nmake run-with-local-emulator\n```\n\n## API Routes\n\n### Create Account\n\n```shell script\ncurl --request POST \\\n  --url http://localhost:8081/accounts \\\n  --header 'content-type: application/json' \\\n  --data '{\n\t\"publicKey\": \"6b1523db40836078eb6f80f8d4f934f03725a4e66574815b5d2a9f2ba5dcf9c483fc1b543392f6ada01cc13790f996d0969ee6f9c8d9190f54dc31f44be0a53b\",\n\t\"signatureAlgorithm\": \"ECDSA_P256\",\n\t\"hashAlgorithm\": \"SHA3_256\"\n}\n'\n```\n\nSample response:\n\n```json\n{\n  \"address\": \"01cf0e2f2f715450\",\n  \"publicKeys\": [\n    {\n      \"publicKey\": \"6b1523db40836078eb6f80f8d4f934f03725a4e66574815b5d2a9f2ba5dcf9c483fc1b543392f6ada01cc13790f996d0969ee6f9c8d9190f54dc31f44be0a53b\",\n      \"signatureAlgorithm\": \"ECDSA_P256\",\n      \"hashAlgorithm\": \"SHA3_256\"\n    }\n  ]\n}\n```\n\n### Get Account By Public Key\n\n```shell script\ncurl --request GET \\\n  --url 'http://localhost:8081/accounts?publicKey=6b1523db40836078eb6f80f8d4f934f03725a4e66574815b5d2a9f2ba5dcf9c483fc1b543392f6ada01cc13790f996d0969ee6f9c8d9190f54dc31f44be0a53b'\n```\n\nSample response:\n\n```json\n{\n  \"address\": \"01cf0e2f2f715450\",\n  \"publicKeys\": [\n    {\n      \"publicKey\": \"6b1523db40836078eb6f80f8d4f934f03725a4e66574815b5d2a9f2ba5dcf9c483fc1b543392f6ada01cc13790f996d0969ee6f9c8d9190f54dc31f44be0a53b\",\n      \"signatureAlgorithm\": \"ECDSA_P256\",\n      \"hashAlgorithm\": \"SHA3_256\"\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonflow%2Fflow-account-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonflow%2Fflow-account-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonflow%2Fflow-account-api/lists"}