Function createUpdateRewardRateInstruction

  • Update a ship's reward rate (Admin only)

    Parameters

    • connection: Connection

      web3.Connection object

    • updateAuthorityAccount: PublicKey

      valid authority public key

    • shipMint: PublicKey

      Ship mint address

    • newRewardRatePerSecond: number

      New Atlas rewards per second in base units

    • programId: PublicKey

      Deployed Score program ID

    Returns Promise<web3.TransactionInstruction>