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

NameTypeDescription

ChainId*

String

ChainId

Request Body

NameTypeDescription

to*

String

Contract Address

walletId*

String

The ID of the wallet

chainId*

String

Chain ID

params*

String

Additional parameters for the transaction

method*

String

The method for the transaction

isContractTxn*

String

Boolean - Indicates whether the transaction is a contract transaction

contractABI*

String

The Application Binary Interface (ABI) of the contract

{
  "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