nectargraphenebase.unsignedtransactions module

class nectargraphenebase.unsignedtransactions.GrapheneObjectASN1(data: Any = None)

Bases: object

Core abstraction class

This class is used for any JSON reflected object in Graphene.

  • instance.__json__(): encodes data into json format

  • bytes(instance): encodes data into wire format

  • str(instances): dumps json object as string

json() Dict[str, Any]
toJson() Dict[str, Any]
class nectargraphenebase.unsignedtransactions.Unsigned_Transaction(*args: Any, **kwargs: Any)

Bases: GrapheneObjectASN1

Create an unsigned transaction with ASN1 encoder for using it with ledger

Parameters:
  • ref_block_num (num)

  • ref_block_prefix (num)

  • expiration (str) – expiration date

  • operations (array) – array of operations

build_apdu(path: str = "48'/13'/0'/0'/0'", chain: str | Dict[str, Any] | None = None) List[bytes]
build_apdu_pubkey(path: str = "48'/13'/0'/0'/0'", request_screen_approval: bool = False) bytes
build_path(role: str, account_index: int, key_index: int) str
derSigToHexSig(s: str | bytes) str

Format DER to HEX signature

deriveDigest(chain: str | Dict[str, Any]) None
getChainParams(chain: str | Dict[str, Any]) Dict[str, Any]
getKnownChains() Dict[str, Any]
getOperationKlass() type[Operation]
property id: str

The transaction id of this transaction