Home > bitburner > NS > renamePurchasedServer
Rename a purchased server.
Signature:
renamePurchasedServer(hostname: string, newName: string): boolean;
Parameter | Type | Description |
---|---|---|
hostname | string | Current server hostname. |
newName | string | New server hostname. |
Returns:
boolean
True if successful, and false otherwise.
RAM cost: 0 GB