/callReadFunctionForStellarSmartContract
1 min
POST
/callReadFunctionForStellarSmartContract
account_idinteger<p>Internal MPC account identifier that will sign the authorization (the "Hot" signer).</p>
contract_addressstring<p>Target contract address (C-address, StrKey starting with 'C…').</p>
max_feeinteger<p>Maximum fee to use for building/simulating the transaction that computes the authorization.</p>
function_namestring<p>Contract function to invoke (symbol), e.g. "execute".</p>
parameters_fields_types_and_valuesarray<p>Argument list for the function. Each element describes one SCVal argument.
Typical shapes we accept:</p>
<ul>
<li><code>["address", "<G…|C…>"]</code></li>
<li><code>["u32", "123"]</code>, <code>["i128", "-42"]</code></li>
<li><code>["symbol", "transfer"]</code></li>
<li><code>["string", "hello"]</code></li>
<li><code>["bytes", "0x…"]</code>, <code>["bytes32", "0x…"]</code></li>
<li>Composite types like <code>["vec<u64>", [ "1","2","3" ]]</code></li>
<li>Maps as <code>["map<symbol,u128>", [[["symbol","USD"],["u128","1000"]], …]]</code>
For complex/named structs, provide the <code>structs</code> mapping below.</li>
</ul>
structsstring<p>(Optional) Schema for user-defined structs used inside parameters.
Example:
{ "MyStruct": [ ["symbol","code"], ["u128","amount"] ] }</p>
specificFromAddressstringThe specific deposit address to send from. Cannot be used if the account is defined as an Omnibus account.
acceptstringGenerated from available response content types
200success
curl --request POST \
--url '/callReadFunctionForStellarSmartContract?account_id=1&contract_address=CCOZ5XDWPXVYLIUCLK2YKW5RXPOWINDB2FIQBM5JUXAWLMQW5RRMELNF&max_fee=4000000&function_name=execute¶meters_fields_types_and_values=array&structs=None' \
--header 'accept: application/json'