Function: externalTransactionEncode()
function externalTransactionEncode(params, signer): Promise<object>
Encodes the given external transaction.
Parameters
Parameter | Type | Description |
---|---|---|
|
| The external transaction to be encoded without its auth data. |
| The transaction signer. |
Returns
Promise
<object
>
The transaction bytecode and the transaction hash.
hash
hash: Uint8Array;
raw
raw: Uint8Array;
Async
Defined
@nilfoundation/niljs/src/encoding/externalTransaction.ts:305