Function getStarbasePlayersByProfile
- getStarbasePlayersByProfile(connection: Connection, sageProgram: SageIDLProgram, playerProfile: PublicKey, gameId: PublicKey): Promise<DecodedAccountData<StarbasePlayer>[]>
-
Parameters
-
connection: Connection
-
-
playerProfile: PublicKey
-
gameId: PublicKey
Returns Promise<DecodedAccountData<StarbasePlayer>[]>
Get StarbasePlayer accounts owned by the provided PlayerProfile
Returns
array of Starbase players