Function createRefuelInstruction

  • Provides a transaction instruction which can be used to transfer fuel resources to a player's fuel escrow account.

    Parameters

    • connection: Connection

      web3.Connection object

    • tokenOwnerPublickey: PublicKey

      Resource Token Account Owner

    • playerPublicKey: PublicKey

      Player's public key

    • fuelQuantity: number

      Fuel resource quantity as u64

    • shipMint: PublicKey

      Ship mint address

    • fuelMint: PublicKey

      Fuel resource mint address

    • fuelTokenAccount: PublicKey

      Token account for the fuel resource being deposited

    • programId: PublicKey

      Deployed program ID for the SCORE program

    Returns Promise<web3.TransactionInstruction>