Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TransactionParametersResponse

TransactionParams contains the parameters that help a client construct a new transaction.

Hierarchy

Index

Constructors

  • new TransactionParametersResponse(__namedParameters: { consensusVersion: string; fee: number | bigint; genesisHash: string | Uint8Array; genesisId: string; lastRound: number | bigint; minFee: number | bigint }): TransactionParametersResponse
  • Creates a new TransactionParametersResponse object.

    Parameters

    • __namedParameters: { consensusVersion: string; fee: number | bigint; genesisHash: string | Uint8Array; genesisId: string; lastRound: number | bigint; minFee: number | bigint }
      • consensusVersion: string
      • fee: number | bigint
      • genesisHash: string | Uint8Array
      • genesisId: string
      • lastRound: number | bigint
      • minFee: number | bigint

    Returns TransactionParametersResponse

Properties

attribute_map: Record<string, string>
consensusVersion: string

ConsensusVersion indicates the consensus protocol version as of LastRound.

fee: number | bigint

Fee is the suggested transaction fee Fee is in units of micro-Algos per byte. Fee may fall to zero but transactions must still have a fee of at least MinTxnFee for the current network protocol.

genesisHash: Uint8Array

GenesisHash is the hash of the genesis block.

genesisId: string

GenesisID is an ID listed in the genesis block.

lastRound: number | bigint

LastRound indicates the last round seen

minFee: number | bigint

The minimum transaction fee (not per byte) required for the txn to validate for the current network protocol.

Methods

  • get_obj_for_encoding(binary?: boolean): Record<string, any>
  • Get an object ready for encoding to either JSON or msgpack.

    Parameters

    • binary: boolean = false

      Use true to indicate that the encoding can handle raw binary objects (Uint8Arrays). Use false to indicate that raw binary objects should be converted to base64 strings. True should be used for objects that will be encoded with msgpack, and false should be used for objects that will be encoded with JSON.

    Returns Record<string, any>

Generated using TypeDoc