0.3.0 • Published 18 days ago

@skeet-framework/solana-utils v0.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
18 days ago

Skeet Solana Utils

This plugin is a collection of utilities for Solana. Especially works with Skeet Framework.

Installation

npm install @skeet-framework/solana-utils

with Skeet Framework

skeet yarn add -p @skeet-framework/solana-utils

Usage

Checks whether a validator is active on the Solana network.

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.

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

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 code of conduct.

License

The package is available as open source under the terms of the Apache-2.0 License.

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.

0.3.0

18 days ago

0.2.10

5 months ago

0.2.9

5 months ago

0.2.8

5 months ago

0.2.7

5 months ago

0.2.6

5 months ago

0.2.4

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.9

7 months ago

0.1.8

7 months ago

0.1.7

7 months ago

0.1.6

7 months ago

0.1.5

7 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago