{"id":28148113,"url":"https://github.com/blockdaemon/defi-examples-go","last_synced_at":"2026-01-25T00:02:47.133Z","repository":{"id":278565269,"uuid":"936039238","full_name":"Blockdaemon/defi-examples-go","owner":"Blockdaemon","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-07T12:03:45.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T00:24:02.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/Blockdaemon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-20T12:35:58.000Z","updated_at":"2025-03-07T12:03:48.000Z","dependencies_parsed_at":"2025-02-20T13:50:44.553Z","dependency_job_id":null,"html_url":"https://github.com/Blockdaemon/defi-examples-go","commit_stats":null,"previous_names":["blockdaemon/defi-examples-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Blockdaemon/defi-examples-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fdefi-examples-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fdefi-examples-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fdefi-examples-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fdefi-examples-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blockdaemon","download_url":"https://codeload.github.com/Blockdaemon/defi-examples-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fdefi-examples-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28739321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-05-15T00:23:59.449Z","updated_at":"2026-01-25T00:02:47.104Z","avatar_url":"https://github.com/Blockdaemon.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# defi-examples-go\n\nThis repository contains example scripts that leverage Blockdaemon's DEFI API using the Go SDK. These examples demonstrate how to interact with various DeFi functionalities across different blockchain networks.\n\n## Requirements\n\n- Go 1.21 or higher\n- A Blockdaemon API Key\n\n## Getting Started\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/your-username/defi-examples-go\ncd defi-examples-go\n```\n\n2. Install dependencies:\n```bash\ngo mod tidy\n```\n\n3. Set up your environment:\n```bash\ncp .env.example .env\n```\n\n1. Add your [Blockdaemon API Key](https://www.blockdaemon.com/api) to the `.env` file:\n```properties\nBLOCKDAEMON_API_KEY=your_api_key_here\nDEFI_API_BASE_PATH=https://svc.blockdaemon.com/defi/v1\n```\n\n## Available Examples\n\n- `chains`: Lists supported blockchain networks\n\n### Running Examples\n\nRun any example using `go run`:\n\n```bash\ngo run examples/chains/main.go    # Get supported blockchain networks\n```\n\n## Environment Variables\n\nThe following environment variables are required:\n\n- `BLOCKDAEMON_API_KEY`: Your Blockdaemon API key\n- `DEFI_API_BASE_PATH`: API base URL (defaults to https://svc.blockdaemon.com/defi/v1)\n\n## Legal Warning ⚠️🚨\n\nThese example applications are provided as learning resources for the DEFI API. They are experimental and should not be used in production environments. For more information, please contact our team through our [support page](https://www.blockdaemon.com/support).\n\n## Common Issues and Troubleshooting\n\n### API Key Issues\n- Ensure your API key is correctly set in the `.env` file\n- Verify your API key has the necessary permissions\n\n### Debug Logging\nTo enable more verbose logging, set the log level in your code:\n\n```go\nlog.SetFlags(log.LstdFlags | log.Lshortfile)\n```\n\n## Need Help? 👋\n\nContact us through [email](support@blockdaemon.com) or our [support page](https://www.blockdaemon.com/support) for any assistance you may need.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockdaemon%2Fdefi-examples-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockdaemon%2Fdefi-examples-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockdaemon%2Fdefi-examples-go/lists"}