19 lines
544 B
Python
19 lines
544 B
Python
import example_utils
|
|
|
|
from hyperliquid.utils import constants
|
|
|
|
|
|
def main():
|
|
address, info, exchange = example_utils.setup(constants.TESTNET_API_URL, skip_ws=True)
|
|
|
|
if exchange.account_address != exchange.wallet.address:
|
|
raise Exception("Agents do not have permission to perform internal transfers")
|
|
|
|
# Transfer 1 usd to the zero address for demonstration purposes
|
|
transfer_result = exchange.usd_transfer(1, "0x0000000000000000000000000000000000000000")
|
|
print(transfer_result)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|