/getGasLimitSuggestedForTransactionToStellarContractWithContractInfo
1 min
POST
/getGasLimitSuggestedForTransactionToStellarContractWithContractInfo
account_idinteger<p>The MPC account ID used to simulate/build the call (the submitting “Hot” wallet).</p>
contract_addressstring<p>Target contract address (C-address, StrKey starting with 'C…').</p>
function_namestring<p>Contract function to call (e.g., "transfer", "execute").</p>
parameters_fields_types_and_valuesarray<p>Argument list for the function. Each element describes one SCVal argument.
Typical formats we accept:</p>
<ul>
<li><code>["address","GB..."]</code>, <code>["u64","123"]</code>, <code>["symbol","transfer"]</code>, <code>["string","hello"]</code></li>
<li><code>["vec<u64>", ["1","2","3"]]</code></li>
<li><code>["map<symbol,u128>", [[["symbol","USD"],["u128","1000"]]]]</code>
All numeric values should be strings. Addresses must be valid <code>G…</code>/<code>C…</code> StrKeys.</li>
</ul>
specificFromAddressstringThe specific deposit address to send from. Cannot be used if the account is defined as an Omnibus account.
multiplierinteger<p>type multiplier: int|float
Factor to scale the suggested compute limit (e.g., <code>1.2</code> → +20% headroom).
If omitted, the raw simulated value (plus any internal safety margin) is returned.</p>
acceptstringGenerated from available response content types
200success
curl --request POST \
--url '/getGasLimitSuggestedForTransactionToStellarContractWithContractInfo?account_id=1&contract_address=CCOZ5XDWPXVYLIUCLK2YKW5RXPOWINDB2FIQBM5JUXAWLMQW5RRMELNF&function_name=execute¶meters_fields_types_and_values=' \
--header 'accept: application/json'