A Python wrapper for the NOWPayments API.
The api call descriptions are from the official documentation.
Before using the NOWPayments API, sign up for a API key here.
If you want to use the Sandbox, request your API key here.
To install the wrapper, enter the following into the terminal.
pip install nowpaymentsEvery api call requires this api key. Make sure to use this key when getting started.
fromnowpaymentsimportNOWPaymentspayment=NOWPayments("API_KEY")
status=payment.get_api_status()Sandbox is used in the same way in correspondence with the documentation as follows.
fromnowpaymentsimportNOWPaymentsSandboxpayment=NOWPaymentsSandbox("SANDBOX_API_KEY")
status=payment.get_api_status()