prepare
Prepares a JSON transaction for emission.
Concepts
Behaviour
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.
Definition
Example
Parameters
Name
Type
Description
txJson
Record<string, any> | Transaction
The transaction JSON, must be a complete transaction except for Account (always the Hook account).
Return Code
Type
Description
ErrorCode | Record<string, any> | Transaction
Returns an ErrorCode if there is an error, or the prepared transaction JSON or Transaction object.
Last updated
Was this helpful?