Functions
compileTransactionMessage
compileTransactionMessage<
TTransactionMessage
>(transactionMessage
):ForwardTransactionMessageLifetime
<ForwardTransactionMessageVersion
<TTransactionMessage
>>
Converts the type of transaction message data structure that you create in your application to the type of transaction message data structure that can be encoded for execution on the network.
This is a lossy process; you can not fully reconstruct a source message from a compiled message without extra information. In particular, supporting details about the lifetime constraint and the concrete addresses of accounts sourced from account lookup tables will be lost to compilation.
Type Parameters
Type Parameter |
---|
TTransactionMessage extends Readonly <{ instructions : readonly Instruction <string , readonly (AccountLookupMeta <string , string > | AccountMeta <string >)[]>[]; version : TransactionVersion ; }> & TransactionMessageWithFeePayer <string > |
Parameters
Parameter | Type |
---|---|
transactionMessage | TTransactionMessage |
Returns
ForwardTransactionMessageLifetime
<ForwardTransactionMessageVersion
<TTransactionMessage
>>