Example scripts interacting with Ethena Minting API
$ cp .env.example .env
# Edit .env file with your credentials. These will be loaded into environment variables on start.
Tested under Python 3.11.
# Create self-contained Python environment:
$ python -m venv myenv
# Activate the environment:
$ source venv/bin/activate
# Check version = 3.11
(venv) $ python3 --version
# Install requirements
(venv) $ pip install -r requirements.txt
$ This will run the mint.
$ ./mint_script_v2.py
- Q. What is mint_script.py?
- A. The original mint script which is now obsolete. Use mint_script_v2.py instead.
rfq_id
returned in the/rfq
endpoint must now be included asorder_id
within the signed order payload posted to the/order
endpoint.rfq_id
is no longer required with the/order
submission parameters.signature_type
has been included as optional parameter in the/order
endpoint. The default value isEIP712
with the only other supported value beingEIP1271
; mandatory for orders of that kind.