Python classes to interact with the Iridium (IRD) core.

  • Iridium (IRD) Wallet Daemon (in development)
  • Iridium (IRD) Core Daemon (coming soon)
  • Iridium (IRD) simple wallet (coming soon)
  • Iridium (IRD) miner (coming soon)

  1. Creating an instance
  2. Running unittests on the Iridium (IRD) testnet wallets
  3. Methods for the IridiumClient

Import the IridiumClient class and create a new instance of it:

from iridium_client import IridiumClient
iridium = IridiumClient("localhost", 14008)
Or if your iridium_walletd is running on localhost with the default port of 14008, there is no need to pass in any arguments, there are default values:
from iridium_client import IridiumClient
iridium = IridiumClient()

  • If you want to view the output of any method add this argument: “print_info=True”. See examples below:

Calling the reset method to re-synchronize your wallet:

Status Code: 200
Message: Re-synchronized Wallet.
{'id': 'iridium-python-api', 'jsonrpc': '2.0', 'result': {}}

Important: If the viewSecretKey argument is specified, the reset method substitutes the existing wallet with a new one with the new specified viewSecretKey.

This will override your existing wallet file! Don't do that at home without having a backup of your keys!

You have been warned.

Calling the reset method with the view_secret_key argument will replace the current viewSecretKey by the new specified:

iridium.reset(view_secret_key="EXAMPLE_SECRET_VIEW_KEY", print_info=True)

(more coming soon)

Daniel Martin 2021/06/24 17:20