https://github.com/pippinmole/solscanner
A .NET library which wraps the Solscan API
https://github.com/pippinmole/solscanner
Last synced: 3 months ago
JSON representation
A .NET library which wraps the Solscan API
- Host: GitHub
- URL: https://github.com/pippinmole/solscanner
- Owner: pippinmole
- License: mit
- Created: 2024-12-26T18:23:55.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-24T17:56:49.000Z (4 months ago)
- Last Synced: 2025-01-24T18:28:29.915Z (4 months ago)
- Language: C#
- Homepage:
- Size: 112 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SolScanner
[](https://www.nuget.org/packages/SolScanner)
[](https://www.nuget.org/packages/SolScanner)SolScanner is a .NET wrapper for the [SolScan API](https://pro-api.solscan.io/pro-api-docs/v2.0).
> [!IMPORTANT]
> This project is in active development. It is also GUESS WORK as I do not have access to a PRO Solscan API key. If you would like to help, please create a GitHub issue with your contact information.### How to use
1. Install the [Nuget](https://www.nuget.org/packages/SolScanner) package
```cli
Install-Package SolScanner
```
2. Instantiate the BscScanClient
```cs
var apiKey = "...";
var client = new SolscanClient(apiKey);
var request = new AccountTransactionsRequest
{
Address = "GCUEeFgWWcAouA8KvXbY235qcRvn3pQKKbPjYTrxdiiC",
Before = "2HY1yJ54GHRDR1jGLKQMi4xNR4cx488xeHK87z4Lh16c",
Limit = ELimit.Fourty,
};
var result = await client.GetAccountTransactions(request);
if(result.Success) {
// Do successful things
} else {
// :(
}
```## Progress
| Description | Section | Function Name | Is Implemented |
|-----------------------------------|------------------|-------------------------------------|----------------|
| Account transfer | Account APIs | `GetAccountTransfer` | ✅ |
| Account token-accounts | Account APIs | `GetAccountTokenAccounts` | ✅ |
| Account defi activities | Account APIs | `GetAccountDefiActivity` | ✅ |
| Account balance change activities | Account APIs | `GetAccountBalanceChangeActivities` | ✅ |
| Account transactions | Account APIs | `GetAccountTransactions` | ✅ |
| Account stake | Account APIs | `GetAccountStakes` | ✅ |
| Account detail | Account APIs | `GetAccountDetails` | ✅ |
| Account rewards export | Account APIs | `GetAccountRewardsExport` | ❌ |
| Account transfer export | Account APIs | `GetAccountTransportExport` | ❌ |
| Token transfer | Token APIs | `GetTokenTransfers` | ✅ |
| Token defi activities | Token APIs | `GetTokenDefiActivities` | ✅ |
| Token markets | Token APIs | `GetTokenMarkets` | ✅ |
| Token list | Token APIs | `GetTokenList` | ✅ |
| Token trending | Token APIs | `GetTrendingTokens` | ✅ |
| Token price | Token APIs | `GetTokenPrice` | ✅ |
| Token holders | Token APIs | `GetTokenHolders` | ✅ |
| Token meta | Token APIs | `GetTokenMeta` | ✅ |
| Token top | Token APIs | `GetTopToken` | ✅ |
| News NFT | NFT APIs | `GetNftNews` | ✅ |
| NFT activities | NFT APIs | `GetNftActivities` | ✅ |
| NFT collection lists | NFT APIs | `GetNftCollectionLists` | ✅ |
| NFT collection items | NFT APIs | `GetNftCollectionItems` | ✅ |
| Transaction last | Transaction APIs | `GetLastTransactions` | ✅ |
| Transaction detail | Transaction APIs | `GetTransactionDetails` | ✅ |
| Transaction actions | Transaction APIs | `GetTransactionActions` | ✅ |
| Block last | Block APIs | `GetLastBlock` | ✅ |
| Block transactions | Block APIs | `GetBlockTransactions` | ✅ |
| Block detail | Block APIs | `GetBlockDetails` | ✅ |
| Monitor usage | Monitoring APIs | `GetMonitorUsage` | ✅ |
| Pool market list | Market APIs | `GetPoolMarketList` | ✅ |
| Get market info | Market APIs | `GetMarketInfo` | ✅ |
| Get market volume | Market APIs | `GetMarketVolume` | ✅ |## How to contribute
You can contribute by pulling the code, making some changes and then opening a pull request. The changes will be revised and merged into main if it is a valid feature/bug fix.
1. Pull the latest main branch
2. Nuget restore to get dependencies
3. Make some changes
4. Create a pull request with a detailed explanation on why the changes were madeYou can also donate SOL to this address: 5HMZmbtYm8KY5Zyjr7cy7C4WemEJyP4AqWksaJrUHHmG