callContract()
Use this method if you want to execute a function writte in a smart contract.
public function callContract($blockchain, $from, $address, $request) Name
Type
Description
<?php
require 'vendor/autoload.php';
use CircularProtocol\Api\CircularProtocolAPI;
$circular = new CircularProtocolAPI();
$blockchain = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2";
$senderAddress = "0x8b1dd25076c04c5139acba458f86c69cd2d322c61d19bc28daa3bbd945083738";
$contractAddress = "0x9f1dd25076c04c5139acba438f86c69adbd322c61d19bc28dff3bbd9450837312"
$request = "CRC_Contract.__GetContractName();"
$result = $circular->callContract($blockchain, $senderAddress, $contractAddress, $request);Last updated