Sign And Submit Gasless Txn Using (kms wallet)
The "Sign And Submit Gasless Txn Using (kms wallet)" API endpoint allows users to sign and submit a gasless transaction using a Key Management Service (KMS) wallet in a local development environment.
API Specification
Sign And Submit Gasless Txn
POST
http://localhost:8888/wallet/signAndSubmitGaslessTxn
Sign And Submit Gasless Txn under the given instance.
Headers
Authorization*
String
User Auth key obtained
Request Body
walletId*
String
The ID associated with the SMW wallet for signing the transaction.
dAppId*
String
Dapp ID associated with the application
chainId*
String
Chain ID representing the blockchain protocol
to*
String
Contract address to which the gasless transaction is being sent
contractAbi*
String
The ABI (Application Binary Interface) of the contract
method*
String
The specific method of the contract for which the gasless transaction is being initiated
params*
String
Parameters required for the specified contract method
{
"Status": "SUCCESS",
"Message": "Transaction Complete",
"Data": {
"message": "Tx submitted to network successfully",
"txHash": "0x50c7f0b20a758de6759cfadd895d268886043dd52ecaac1ca98axxxxxxxxxxx"
}
}
Take a look at how you might call this method using our official libraries, or via curl
curl --location 'http://localhost:8888/wallet/signAndSubmitGaslessTxn' \
--header 'Authorization: 03374415-xxxx-xxxx-xxxx-1277d243034e' \
--header 'Content-Type: application/json' \
--data '{
"walletId": "42d0a078-2a9f-45eb-988e-c35d62xxxxxx",
"dAppId": "DEV_DEMO_PACE_46_xxxxxxxx",
"chainId": 80001,
"to": "0x362149525adee7A0B20212D76Fad073Cxxxxxxxxx",
"contractAbi": "Base64 of abi",
"method": "transfer",
"params": []
}'
Last updated
Was this helpful?