[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getScriptIncome](./bitburner.ns.getscriptincome.md) ## NS.getScriptIncome() method Get the income of a script. **Signature:** ```typescript getScriptIncome(script: string, host?: string, ...args: ScriptArg[]): number; ``` ## Parameters
| Parameter | Type | Description |
|---|---|---|
| script | string | Filename of script. |
| host | string | _(Optional)_ Hostname/IP of the server on which the script is running. Optional. Defaults to current server if not provided. |
| args | [ScriptArg](./bitburner.scriptarg.md)\[\] | Arguments that the script is running with. |