https://github.com/elsoul/skeet-solana-utils
https://github.com/elsoul/skeet-solana-utils
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/elsoul/skeet-solana-utils
- Owner: elsoul
- License: apache-2.0
- Created: 2023-10-16T10:26:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T18:28:59.000Z (almost 2 years ago)
- Last Synced: 2025-08-09T04:58:47.288Z (2 months ago)
- Language: TypeScript
- Size: 8.07 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Skeet Solana Utils
This plugin is a collection of utilities for Solana.
Especially works with [Skeet Framework](https://skeet.dev).## Installation
```bash
npm install @skeet-framework/solana-utils
```with Skeet Framework
```bash
skeet yarn add -p @skeet-framework/solana-utils
```## Usage
Checks whether a validator is active on the Solana network.
```typescript
import { isValidatorActive } from '@skeet-framework/solana-utils'const rpcUrl = 'https://api.mainnet-beta.solana.com'
const vateAccountPubkey = 'vateAccountPubkey'
const status = await isValidatorActive(rpcUrl, vateAccountPubkey)
console.log(status)
```Retrieves the last staking reward for a given stake account on the Solana blockchain.
```typescript
import { getLastStakingReward } from '@skeet-framework/solana-utils'const rpcUrl = 'https://api.mainnet-beta.solana.com'
const stakeAccountPubkey = 'stakeAccountPubkey'
const reward = await getLastStakingReward(rpcUrl, stakeAccountPubkey)
console.log(reward)
```more functions can be found in the
- [Skeet Solana Utils TypeDoc](https://elsoul.github.io/skeet-solana-utils/)
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/elsoul/skeet This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The package is available as open source under the terms of the [Apache-2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
## Code of Conduct
Everyone interacting in the SKEET project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/elsoul/skeet-cli/blob/master/CODE_OF_CONDUCT.md).
```
```