prepare
Prepares a JSON transaction for emission.
Last updated
Was this helpful?
Prepares a JSON transaction for emission.
Last updated
Was this helpful?
This function takes a transaction JSON object and prepares it for emission.
The transaction must be complete except for the Account field, which should always be the Hook account.
txJson
Record<string, any> | Transaction
The transaction JSON, must be a complete transaction except for Account (always the Hook account).
ErrorCode | Record<string, any> | Transaction
Returns an ErrorCode if there is an error, or the prepared transaction JSON or Transaction object.