Skip to main content

iota_sdk.types.feature

Feature Objects

class Feature()

__init__

def __init__(type, sender=None, issuer=None, data=None, tag=None)

Initialize a feature

Parameters

  • type: FeatureType
    The type of feature
  • sender: Address
    Sender address
  • issuer: Address
    Issuer Address
  • data: string
    Hex encoded metadata
  • tag: string
    Hex encoded tag used to index the output

SenderFeature Objects

class SenderFeature(Feature)

__init__

def __init__(sender)

Initialize a SenderFeature

Parameters

  • sender: Address
    Sender address

IssuerFeature Objects

class IssuerFeature(Feature)

__init__

def __init__(issuer)

Initialize an IssuerFeature

Parameters

  • issuer: Address
    Issuer address

MetadataFeature Objects

class MetadataFeature(Feature)

__init__

def __init__(data: HexStr)

Initialize a MetadataFeature

Parameters

  • data: HexStr
    Hex encoded metadata

TagFeature Objects

class TagFeature(Feature)

__init__

def __init__(tag: HexStr)

Initialize a TagFeature

Parameters

  • tag: HexStr
    Hex encoded tag used to index the output