TransactionKind
TransactionKind Objects
class TransactionKind(TransactionKindProtocol)
Transaction type
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
from_bcs
@classmethod
def from_bcs(cls, bcs: bytes) -> TransactionKind
Create this type from BCS encoded bytes.
from_json
@classmethod
def from_json(cls, json: str) -> TransactionKind
Create this type from a JSON encoded string.
new_consensus_commit_prologue_v1
@classmethod
def new_consensus_commit_prologue_v1(
cls, transaction: ConsensusCommitPrologueV1) -> TransactionKind
Create a TransactionKind for a consensus-commit-prologue-v1 transaction.
new_end_of_epoch
@classmethod
def new_end_of_epoch(
cls, transaction: typing.List[EndOfEpochTransactionKind]
) -> TransactionKind
Create a TransactionKind for an end-of-epoch transaction.
new_genesis
@classmethod
def new_genesis(cls, transaction: GenesisTransaction) -> TransactionKind
Create a TransactionKind for a genesis transaction.
new_programmable
@classmethod
def new_programmable(cls,
transaction: ProgrammableTransaction) -> TransactionKind
Create a TransactionKind for a programmable transaction.
new_randomness_state_update
@classmethod
def new_randomness_state_update(
cls, transaction: RandomnessStateUpdate) -> TransactionKind
Create a TransactionKind for a randomness-state-update transaction.
new_transaction_deny_rules_update
@classmethod
def new_transaction_deny_rules_update(
cls, transaction: TransactionDenyRulesUpdate) -> TransactionKind
Create a TransactionKind for a transaction-deny-rules-update transaction.
to_bcs
def to_bcs() -> bytes
Convert this type to BCS encoded bytes.
to_display_string
def to_display_string() -> str
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
to_json
def to_json() -> str
Convert this type to a JSON encoded string.