Call Contract

This calls the Deployed contract The weightage for this API is 1

API Specification

Call Contract

POST https://api.krypcore.com/api/v0/wallet/callContract

Call the contract under the given instance.

Headers

NameTypeDescription

Authorization*

String

User Auth Key obtained from Dash

instanceId*

String

Instance ID form dashboard

Request Body

NameTypeDescription

mode*

String

Wallet API mode, default mode is "api"

name*

String

Name

Method

String

Store method

Chain Id*

String

chain id

Service Api Key*

String

Api Key

ContractABI*

String

contract abi

{
 Data: {
    response: [
      36893488147419250000,
      184677000000,
      1691997379,
      1691997379,
      36893488147419250000
    ]
  },
  Message: '',
  Status: 'SUCCESS'
}

Take a look at how you might call this method using our official libraries, or via curl:

curl --location -g --request POST 'https://api.krypcore.com/api/v0/wallet/callContract' \
  -header 'Authorization: $Krypc Authentication Key' \
  -header 'Instanceid: $Krypc Core Service InstanceID' \
  -header 'accept: application/json' \
  -header 'Content-Type: application/json' \
  -data '{
  "chainId": 80001,
  "contractABI": "hello",
  "gas": 0,
  "instanceId": "",
  "method": "store",
  "mode": "api",
  "name": "wallet2",
  "params": [
    {
      "type": "string",
      "value": "string"
    }
  ],
  "serviceAPIKey": "dcd96173-bd93-46ff-8d3a-a98baeb4fa87",
  "to": "1.112505559004305e+48",
  "value": 0
}'

Last updated