SOAR
Solana On-Chain Achievement & Ranking
SOAR is a program that provides a seamless solution for managing leaderboards, achievements, players’ profiles and automatic rewards distribution on the Solana blockchain. Currently supporting invocation from a TypeScript client, the integration in Solana.Unity-SDK will be coming soon.
Contents
Quick start
Create a new game
Create a leaderboard
Submit a score
Classes
SoarProgram
The SoarProgram
class gives client access to every instruction in the on-chain SOAR program.
It also gives utility functions for deriving PDAs:
fetching an account:
and fetching multiple accounts:
GameClient
The GameClient
provides a more specific set of functions tailored to a single Game account.
Get an instance representing an existing on-chain Game account:
Register a new game:
InstructionBuilder
The InstructionBuilder provides a set of methods for conveniently bundling transactions.
Was this page helpful?