Call a function of the given smart contract instance, giving it functionParameters as its inputs. The call can use at maximum the given amount of gas – the paying account will not be charged for any unspent gas. If this function results in data being stored, an amount of gas is calculated that reflects this storage burden. The amount of gas used, as well as other attributes of the transaction, e.g. size, number of signatures to be verified, determine the fee for the transaction – which is charged to the paying account.
the contract instance to call, in the format used in transactions
the maximum amount of gas to use for the call
number of tinybars sent (the function must be payable if this is nonzero)
which function to call, and the parameters to pass to the function