Skip to main content

Call Smart Contract Function

POST 

https://api.chaingate.dev/fantom/callSmartContractFunction

Executes a smart contract function call without sending a transaction.

Request

Bodyrequired

  • The request body.
    contractstringrequired
    datastringrequired

Responses

The result of the smart contract function call.

Schema
    resultstringrequired

Authorization: apiKey

name: apiKeytype: apiKeyin: query
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.chaingate.dev/fantom/callSmartContractFunction");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"contract\": \"string\",\n \"data\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.chaingate.dev
Auth
Body required
{
  "contract": "string",
  "data": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!