Bulk Insert
This feature is used when two or more addContractLog or createContractLog must be contained in a single transaction during the contract life cycle or when more than one contracts are sent as a bulk transaction.
Contents
1. getUnsignedTxAddContractLog
This function generates addContractLog transactions as messages. Events that happen in a contract life cycle are contained in the addContractLog. Once the gas fee for generating a message is calculated, the transaction is created by the function that executes messages. * For a more detailed guide on calculating the gas fee and executing messages, please refer to functions 3 and 4.
Parameters
Return value
2. getUnsignedTxCreateContractFile
This function generates "createContractLog" transactions as messages. Events that happen in a contract life cycle are contained in the addContractLog. Once the gas fee for generating a message is calculated, the transaction is created by the function that executes messages. * For a more detailed guide on calculating the gas fee and executing messages, please refer to functions 3 and 4.
Parameters
Return value
3. getGasEstimationSignAndBroadcast
This function estimates the gas fee required when generating transactions of the message list created by functions 1 and 2. When using Bulk Insert, there is a high chance where the gas fee could exceed the default gas fee(0.02fct). Therefore, prior to the execution of the transaction, the gas fee must be estimated properly.
Parameters
Return value
Example Run Image
4. signAndBroadcast
This function lists the messages generated from functions 1 and 2 and then generates the message list as transactions.
Parameters
Return value
Image of the transaction verified in Blockchain Explorer
5. Parameter Description
Last updated