{"id":13425600,"url":"https://github.com/geoffodonnell/dotnet-yieldly-sdk","last_synced_at":"2026-01-14T05:58:24.129Z","repository":{"id":53937781,"uuid":"406581707","full_name":"geoffodonnell/dotnet-yieldly-sdk","owner":"geoffodonnell","description":"Yieldly .NET SDK","archived":false,"fork":false,"pushed_at":"2023-01-08T16:12:03.000Z","size":104,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-25T18:48:16.388Z","etag":null,"topics":["algorand","dotnet","yieldly"],"latest_commit_sha":null,"homepage":"","language":"C#","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/geoffodonnell.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":"2021-09-15T02:04:35.000Z","updated_at":"2025-05-24T15:35:55.000Z","dependencies_parsed_at":"2023-02-08T06:30:30.561Z","dependency_job_id":null,"html_url":"https://github.com/geoffodonnell/dotnet-yieldly-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/geoffodonnell/dotnet-yieldly-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffodonnell%2Fdotnet-yieldly-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffodonnell%2Fdotnet-yieldly-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffodonnell%2Fdotnet-yieldly-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffodonnell%2Fdotnet-yieldly-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geoffodonnell","download_url":"https://codeload.github.com/geoffodonnell/dotnet-yieldly-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffodonnell%2Fdotnet-yieldly-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28412175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["algorand","dotnet","yieldly"],"created_at":"2024-07-31T00:01:15.362Z","updated_at":"2026-01-14T05:58:24.094Z","avatar_url":"https://github.com/geoffodonnell.png","language":"C#","funding_links":[],"categories":["Development \u0026 Tools","Development Tools"],"sub_categories":["Language SDKs \u0026 Tools","Languages"],"readme":"# dotnet-yieldly-sdk\n[![Dev CI Status](https://dev.azure.com/gbo-devops/github-pipelines/_apis/build/status/Yieldly/Yieldly%20Dev%20CI?branchName=develop)](https://dev.azure.com/gbo-devops/github-pipelines/_build/latest?definitionId=4\u0026branchName=develop)\n[![NuGet version](https://badge.fury.io/nu/yieldly.svg)](https://badge.fury.io/nu/yieldly)\n[![Donate Algo](https://img.shields.io/badge/Donate-ALGO-000000.svg?style=flat)](https://algoexplorer.io/address/EJMR773OGLFAJY5L2BCZKNA5PXLDJOWJK4ED4XDYTYH57CG3JMGQGI25DQ)\n\n# Overview\nThis library provides access to the [Yieldly](https://app.yieldly.finance/) No Loss Lottery and Staking contracts on the Algorand blockchain.\n\n## Stake pools\nArbitrary stake pools are now supported. Use the `FetchStakingPoolAsync(...)` method on `YieldlyClient` to retrieve pool, this object can be used by following the same pattern as the client itself. That is, either pass the account instance to a method, which will submit signed transactions to complete an operation, or use the `Prepare...` methods to create a transaction group and handle signing the applicable transactions (see the [example](/example) directory for sample implementations).\n\n## Roadmap\n- [x] Add support for TEAL5 Staking pools\n- [ ] Add example projects for staking pool operations\n- [ ] Create PowerShell module and cmdlets for common operations\n- [ ] Investigate Liquidity Staking pool support\n- [ ] Investigate NFT prize game support\n\n# Installation\nReleases are available at [nuget.org](https://www.nuget.org/packages/Yieldly/).\n\n## Package Manager\n```\nPM\u003e Install-Package -Id Yieldly\n```\n\n## .NET CLI\n```\ndotnet add package Yieldly\n```\n\n# Getting Started\nOther than initializing a client instance, no specific setup is required. However, if your application generates a high volume of requests it is suggested that you setup your own Algod node. See the links below for more information:\n* [Algorand node on Linux/Mac](https://developer.algorand.org/docs/run-a-node/setup/install/)\n* [Algorand node on Windows](https://github.com/randlabs/algorand-windows-node)\n\n## Notes\nThe default client connects to an Algod node maintained by [AlgoNode.io](https://algonode.io/) (Thanks AlgoNode!). It's important that your application handle rate limiting (HTTP 429) responses by decreasing the frequency of requests. See [this guide](https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/implement-http-call-retries-exponential-backoff-polly) for a discussion on the topic.\n\n# Usage\nThis section contains examples for interacting with the lottery and staking contracts. It's possible to use this SDK without passing the Account object to SDK methods, see the `Verbose` example projects in the [example](/example) directory.\n\nTEAL5 staking pools are now supported. The `Type` property on `AsaStakingPool` indicate the pool type.\n\n## Lottery Deposit\nDeposit ALGO in the no loss lottery.\n\n```C#\n// Initialize the client\nvar client = new YieldlyClient();\n\n// Deposit 10 ALGO in the no loss lottery\nvar amountToDeposit = Utils.AlgosToMicroalgos(10.0);\n\nvar result = await client.LotteryDepositAsync(account, amountToDeposit);\n```\n\n## Lottery Withdrawal\nWithdraw ALGO participating in the no loss lottery.\n\n```C#\n// Initialize the client\nvar client = new YieldlyClient();\n\n// Fetch all Yieldly amounts\nvar amounts = await client.FetchAmountsAsync(account.Address);\n\n// Withdraw all ALGO currently deposited in the no loss lottery\nvar result = await client.LotteryWithdrawAsync(account, amounts.AlgoInLottery);\n```\n\n## Lottery Reward Claim\nClaim reward from lottery participation. Note, this does not include winning the lottery, just the rewards in YLDY.\n\n```C#\n// Initialize the client\nvar client = new YieldlyClient();\n\n// Fetch all Yieldly amounts\nvar amounts = await client.FetchAmountsAsync(account.Address);\n\n// Claim current Yieldy rewards from lottery\nvar result = await client.LotteryClaimRewardAsync(account, amounts.LotteryReward.Yieldly);\n```\n\n## Staking Deposit\nDeposit YLDY in the staking pool.\n\n```C#\n// Initialize the client\nvar client = new YieldlyClient();\n\n// Deposit 1000 YLDY in the Yieldly staking pool\nvar amountToDeposit = YieldlyUtils.YieldlyToMicroyieldly(1000.0);\n\nvar result = await client.YieldlyStakingDepositAsync(account, amountToDeposit);\n```\n\n## Staking Withdrawal\nWithdraw YLDY in the staking pool.\n\n```C#\n// Initialize the client\nvar client = new YieldlyClient();\n\n// Fetch all Yieldly amounts\nvar amounts = await client.FetchAmountsAsync(account.Address);\n\n// Withdraw all YLDY currently deposited in the Yieldly staking pool\nvar result = await client.YieldlyStakingWithdrawAsync(account, amounts.YieldlyStaked);\n```\n\n## Staking Reward Claim\nClaim rewards from staking pool participation.\n\n```C#\n// Initialize the client\nvar client = new YieldlyClient();\n\n// Fetch all Yieldly amounts\nvar amounts = await client.FetchAmountsAsync(account.Address);\n\n// Withdraw all ALGO and YLDY currently available as rewards from Yieldly staking pool participation\nvar result = await client.YieldyStakingClaimRewardAsync(account, amounts.StakingReward);\n```\n\n# Examples\nFull examples, simple and verbose, can be found in [example](/example).\n\n# How?\nThis SDK was built by analyzing the transactions created by the [Yieldly](https://app.yieldly.finance/) website in [AlgoExporer](https://algoexplorer.io/). A special thanks [@JoshLmao](https://github.com/JoshLmao), his code provided a starting point for reward calculations. \n\n## Notes\nThe order of transactions in each transaction group is significant. Each transaction group, except lottery winning, has been tested.\n\n## Special Thanks\nSpecial thanks to [@JoshLmao](https://github.com/JoshLmao) for [yly-calc](https://github.com/JoshLmao/ydly-calc/blob/main/src/js/YLDYCalculation.js).\n\n# Build\ndotnet-yieldly-sdk build pipelines use the [Assembly Info Task](https://github.com/BMuuN/vsts-assemblyinfo-task) extension.\n\n# License\ndotnet-yieldly-sdk is licensed under a MIT license except for the exceptions listed below. See the LICENSE file for details.\n\n## Exceptions\nNone.\n\n# Disclaimer\nNothing in the repo constitutes professional and/or financial advice. Use this SDK at your own risk.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeoffodonnell%2Fdotnet-yieldly-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeoffodonnell%2Fdotnet-yieldly-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeoffodonnell%2Fdotnet-yieldly-sdk/lists"}