setTransactionMetadata initializes and sets the required metadata for a transaction. calculates the transaction hash, and sets the precise amount based on the transaction's precision. Parameters: - transaction *model.Transaction: The transaction for which to set metadata.
(transaction *model.Transaction)
source not stored for this graph (policy: none)