Submit Transaction

This Submit Transaction using this method.

API Specification

Submit Transaction

POST http://localhost:8889/wallet/submitTransaction

Submit Transaction under the given instance.

Headers

Request Body

{
  "Status": "SUCCESS",
  "Message": "Signed and executed txn successfully",
  "Data": {
    "txHash": "0x6b9771a48a5536e891cc50f3b830911d7902f430412dc48fad2b3c72515f99bd"
  }
}

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

Here, contractABI need to be in json format

curl -X POST http://localhost:8889/wallet/submitTransaction \
-H "Content-Type: application/json" \
-H "ChainId: xxxx" \
-d '{
  "walletId": "effae2b6-3ee3-xxxxxxxxxxxxxxxxxx",
  "to": "0xc2de797fab7d2d2bxxxxxxxxxxxxxxxxxxxxx",
  "chainId": "xxxx",
  "method": "store",
  "params": [
    {
      "type": "uint256",
      "value": "35"
    }
  ],
  "isContractTxn": true,
  "contractABI": "[]"
}'

Last updated