Function createRefeedInstruction

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

    Parameters

    • connection: Connection

      web3.Connection object

    • tokenOwnerPublickey: PublicKey

      Resource Token Account Owner

    • playerPublicKey: PublicKey

      Player's public key

    • foodQuantity: number

      Food resource quantity as u64

    • shipMint: PublicKey

      Ship mint address

    • foodMint: PublicKey

      Food resource mint address

    • foodTokenAccount: PublicKey

      Token account for the food resource being deposited

    • programId: PublicKey

      Deployed program ID for the SCORE program

    Returns Promise<web3.TransactionInstruction>