Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseTransactionConstructor ¶
type BaseTransactionConstructor interface { // Construct constructs a transaction from its operations Construct( ctx context.Context, operations types.OperationSlice, ) (interfaces.Transaction, []types.AccountId, *rTypes.Error) // Parse parses a signed or unsigned transaction to get its operations and required signers Parse(ctx context.Context, transaction interfaces.Transaction) ( types.OperationSlice, []types.AccountId, *rTypes.Error, ) // Preprocess preprocesses the operations to get required signers Preprocess(ctx context.Context, operations types.OperationSlice) ([]types.AccountId, *rTypes.Error) }
BaseTransactionConstructor defines the methods to construct a transaction
type TransactionConstructor ¶
type TransactionConstructor interface { BaseTransactionConstructor // GetDefaultMaxTransactionFee gets the default max transaction fee in hbar GetDefaultMaxTransactionFee(operationType string) (types.HbarAmount, *rTypes.Error) }
func NewTransactionConstructor ¶
func NewTransactionConstructor() TransactionConstructor
Click to show internal directories.
Click to hide internal directories.