Calculates the minimum creation fee of the contract
The contracts code in hex form
If is true, the fee calculation for active CIP20 is applied (lowered fees), otherwise the legacy calculation (BRS <V2.5) is applied
The minimum fee
Counts the code pages for given machine code
The contracts code in hex form
The number of code pages for the passed code
Generates a method call message of a contracts public method. The message can be sent using for example
MessageApi.sendMessage with messageIsText = false or ContractApi.callContractMethod]
The argument object
A hex string that can be used as contracts transaction message
Extracts a variables value as hexadecimal string from a contract's machine data
This is a generic function to extract arbitrary data from a contract. It's recommended to use the ContractDataView class instead
The contract
The variables position
The length of data to be extracted
The value as hexadecimal string (already considering endianness)
The Contracts package provides functions and messages to interact with Bursts Smart Contracts, i.e. generate method calls and inspect contract data