SplinterLandsAPI 0.27.0
dotnet add package SplinterLandsAPI --version 0.27.0
NuGet\Install-Package SplinterLandsAPI -Version 0.27.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SplinterLandsAPI" Version="0.27.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SplinterLandsAPI --version 0.27.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SplinterLandsAPI, 0.27.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SplinterLandsAPI as a Cake Addin #addin nuget:?package=SplinterLandsAPI&version=0.27.0 // Install SplinterLandsAPI as a Cake Tool #tool nuget:?package=SplinterLandsAPI&version=0.27.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SplinterLandsAPI
This is just a demonstration of using the Splinterlands API through .NET 8.0 C#.
These API's are not documented and are subject to change at any time.
Client
The client is defined as implementing the ISplinterLandsClient interface which is a collection of interfaces seperated by 'Api'. Each interface supports both async and non async methods.
Supported APIs
Cards
- GetCards - returns a list of all Splinterlands cards
- GetCardDetails - look up a card by its id, returns details on ownership
Battles
- GetBattlesForPlayer - returns the last 50 battles a player has participated in
Player
- GetPlayersCurrentQuest - returns details about the current quest for a player
- GetReferralsForPlayer - returns an object with a list of referrals and a list of purchases made by the referrals
- GetPackPurchaesForPlayerByEdition - returns an object describing the purchases made for packs by edition
- GetActiveRentalsForPlayer - returns a list of active rentals for a player
- GetActivelyRentaledCardsForPlayer - returns a list of actively rented cards for a player
- GetTokenBalancesForPlayer - returns a list of all tokens held by the player and their balances
Land
- GetActiveWorksite - returns active worksite information for a plot by deed_uid
- GetActiveWorksiteAsync -
- GetDeedDetails - get the details about a deed by id
Liquidity Pools
- GetLiquidityPools - returns list of all available liquidity pools
- GetLiquidityPoolsAsync - returns list of all available liquidity pools async
- GetLiquidityRegionResources - gets regions player holds resources in
- GetLiquidityRegionResourcesAsync - gets regions player holds resources in async
- GetPlayerLiquidityHoldings - returns list of liquidity by player and resource
- GetPlayerLiquidityHoldingsAsync - returns list of liquidity by player and resource async
- GetLiquidityPoolById - returns liquidity pool by id
- GetLiquidityPoolByIdAsync - returns liquidity pool by id async
- GetLiquidityRewards - returns a collection of all liquidity rewards earned
- GetLiquidityRewardsAsync - returns a collection of all liquidity rewards earned async
Token Activity
- GetTokenHistory - returns history of tokens for player
- GetTokenHistoryAsync - returns history of tokens for player async
- GetExchangeHistory - returns exchange history of tokens for player
- GetExchangeHistoryAsync - returns exchange history of tokens for player async
Known Issues
- If you hit any of these API's in quick sucession you will get rate limited'
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.3)
- RestSharp (>= 110.2.0)
- SplinterLands.DTOs (>= 0.27.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
0.27.0 | 79 | 6/29/2024 | |
0.26.0 | 84 | 6/29/2024 | |
0.25.0 | 77 | 6/1/2024 | |
0.24.0 | 93 | 3/3/2024 | |
0.23.0 | 94 | 2/27/2024 | |
0.22.0 | 97 | 2/25/2024 | |
0.18.1 | 423 | 2/13/2022 | |
0.18.0 | 385 | 2/12/2022 | |
0.17.0 | 379 | 2/12/2022 | |
0.16.0 | 392 | 2/8/2022 | |
0.15.0 | 388 | 2/8/2022 | |
0.14.2 | 374 | 2/7/2022 | |
0.14.1 | 374 | 2/7/2022 | |
0.14.0 | 375 | 2/7/2022 | |
0.13.0 | 386 | 2/6/2022 | |
0.12.10 | 385 | 2/6/2022 | |
0.12.9 | 387 | 2/6/2022 |