getNumTriesRemaining() Netscript Function

getNumTriesRemaining(fn[, hostname/ip=current ip])
Arguments:
  • fn (string) – Filename of the contract
  • hostname/ip (string) – Hostname or IP of the server containing the contract. Optional. Defaults to current server if not provided

Get the number of tries remaining on the contract before it self-destructs.

Returns:Number indicating how many attempts are remaining