Skip to main content

iota_sdk.types.common

CoinType Objects

class CoinType(IntEnum)

Coin types.

Attributes:

  • IOTA 4218 - IOTA
  • SHIMMER 4219 - SHIMMER
  • ETHER 60 - ETHER

Node Objects

class Node()

Represents a node in the network.

__init__

def __init__(url=None, jwt=None, username=None, password=None, disabled=None)

Initialize a Node.

Arguments:

  • url - The node url.
  • jwt - A JWT token for authentication.
  • username - A username for basic authentication.
  • password - A password for basic authentication.
  • disabled - Whether the node should be used for API requests or not.

AddressAndAmount Objects

class AddressAndAmount()

Parameters to send a certain amount of coins to an address.

__init__

def __init__(amount: int, address: str)

Initialize AddressAndAmount for options in Client::build_and_post_block()

Arguments:

  • amount - The base coin amount to send.
  • address - The receive address.