[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContract](./bitburner.codingcontract.md) ## CodingContract interface Coding Contact API Signature: ```typescript export interface CodingContract ``` ## Methods | Method | Description | | --- | --- | | [attempt(answer, fn, host, opts)](./bitburner.codingcontract.attempt.md) | Attemps a coding contract. | | [getContractType(fn, host)](./bitburner.codingcontract.getcontracttype.md) | Get the type of a coding contract. | | [getData(fn, host)](./bitburner.codingcontract.getdata.md) | Get the input data. | | [getDescription(fn, host)](./bitburner.codingcontract.getdescription.md) | Get the description. | | [getNumTriesRemaining(fn, host)](./bitburner.codingcontract.getnumtriesremaining.md) | Get the number of attempt remaining. |