Performing an ASN Lookup by ASN uses the ASNOrigin object. This object requires as a parameter a Net object - which requires an IP address as a parameter.
If solely querying for ASN properties, any IP address can be used to create the Net object - in fact I dont think that required input parameter is used at all in code to support this functionality.
It seems to me that ASN-level implementations shouldn't have an IP address as a required input. I would think that an ASN would be more likely required and that a lookup using the Net object to get an ASN parameter would be a more straightforward approach.
Performing an ASN Lookup by ASN uses the ASNOrigin object. This object requires as a parameter a Net object - which requires an IP address as a parameter.
If solely querying for ASN properties, any IP address can be used to create the Net object - in fact I dont think that required input parameter is used at all in code to support this functionality.
It seems to me that ASN-level implementations shouldn't have an IP address as a required input. I would think that an ASN would be more likely required and that a lookup using the Net object to get an ASN parameter would be a more straightforward approach.