[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContract](./bitburner.codingcontract.md) > [createDummyContract](./bitburner.codingcontract.createdummycontract.md) ## CodingContract.createDummyContract() method Generate a dummy contract. **Signature:** ```typescript createDummyContract(type: CodingContractName, host?: string): string | null; ``` ## Parameters
Parameter Type Description
type [CodingContractName](./bitburner.codingcontractname.md) Type of contract to generate
host string _(Optional)_ Hostname/IP of the server containing the contract. Optional. Defaults to the server the calling script is running on.
**Returns:** string \| null Filename of the contract. ## Remarks RAM cost: 2 GB Generate a dummy contract on the current server with no reward. Used to test various algorithms. This function will return null and not generate a contract if the randomized contract name is the same as another contract's name or the host is offline.