@sc0Vu how can i call a payable function or a function that costs something? i can interact with smart contract and get the response fine, but i dont know how to sign / pay a function call before calling, or where to enter the private key, example
i have "updateStorage" in the smart contract that costs something because it changes the storage
$contract->at($smartContractAddress)->call('updateStorage', "0", [
'from' => $fromAccount
'gas' => "0x200b20"
], function ($err, $result) use (&$test) {
if ($err !== null) {
throw $err;
}
if (isset($result)) {
$test =$result[0]->toString();
}
});
when, where and how do i pay for the function call? i have the private key for the account that pays, whats the process to sign / pay the call?