Create and execute Transactions

This will allow to create a transaction and execute transactions in the network. The weightage for this API is 10

API Specification

Create and execute transactions

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

Create and execute transactions 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"

method*

String

Store method

data

String

data

chainId*

String

Chain ID

serviceAPIKey*

String

Api Key

contractABI*

String

contractABI

to*

String

address of transaction account

value*

Numeric

value

{
  txHash: '0xf3050d6b1908175730f9fc2ab1e06ca9fbbf3f3737781fe711586cf7c55a94c9'
  },
  Message: 'Signed and executed txn successfully',
  Status: 'SUCCESS'
}

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

curl --location 'https://api.krypcore.com/api/v0/wallet/createAndExecuteTx' \
--header 'Authorization: xxxxxxxxxxxxxxxxxx' \
--header 'Instanceid: xxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
  "chainId": 80001,
  "contractABI": "",
  "data": "",
  "gas": 0,
  "isContractTxn": true,
  "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