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
Name
Type
Description
ChainId*
String
ChainId
Request Body
Name
Type
Description
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"
}
}{
"Status": "FAILURE",
"Message": "error sending txn to contract : no contract code at given address",
"Data": null
}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
Last updated
Was this helpful?