[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getScriptRam](./bitburner.ns.getscriptram.md) ## NS.getScriptRam() method Get the ram cost of a script. **Signature:** ```typescript getScriptRam(script: string, host?: string): number; ``` ## Parameters
| Parameter | Type | Description |
|---|---|---|
| script | string | Filename of script. This is case-sensitive. |
| host | string | _(Optional)_ Hostname/IP of target server the script is located on. This is optional. If it is not specified then the function will use the current server as the target server. |