Function createWithdrawFuelInstruction

  • Withdraw Fuel from Escrow - required before withdrawShip

    Parameters

    • connection: Connection

      web3.Connection object

    • playerPublicKey: PublicKey

      Player's public key

    • fuelMint: PublicKey

      Fuel resource mint address

    • shipMint: PublicKey

      Ship mint address

    • programId: PublicKey

      Deployed program ID for the SCORE program

    Returns Promise<FactoryReturn>