Function createSettleInstruction

  • Returns an instruction that can be used to update the amount of ATLAS in a player's pending rewards and update staked time paid

    Parameters

    • connection: Connection

      web3.Connection object

    • playerPublicKey: PublicKey

      Player's public key

    • updateAuthorityAccount: PublicKey

      valid authority public key

    • shipMint: PublicKey

      Ship mint address

    • programId: PublicKey

      Deployed program ID for the SCORE program

    Returns Promise<web3.TransactionInstruction>