Sign And Submit Gasless Txn Using (Dev wallet)

The "Sign And Submit Gasless Txn Using (Dev wallet)" API endpoint provided by Krypcore allows developers to sign and submit a gasless transaction using a developer wallet.

API Specification

Sign And Submit Gasless Txn

POST https://api.krypcore.com/api/v0/devWallet/signAndSubmitGaslessTx

Sign And Submit Gasless Txn under the given instance.

Headers

NameTypeDescription

Authorization*

String

User Auth key obtained

Request Body

NameTypeDescription

privateKey*

String

The private key associated with the developer 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

{
    "Data": {
        "message": "Tx submitted to network successfully",
        "txHash": "0xaf5b0a341bcd9efcfa1218a667f9c4b5fb0f5ddf3c86522xxxxxxxxxxxxxxxxxx"
    },
    "Message": "",
    "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/devWallet/signAndSubmitGaslessTx' \
--header 'Authorization: 03374415-xxxx-xxxx-xxxx-1277d243034e' \
--header 'Content-Type: application/json' \
--data '{
    "privateKey": "0x8342922845efe725d5379f705e707c8a7cff9941f7a301362c9de36e59xxxxxx",
    "dAppId": "DEV_DEMO_PACE_46_xxxxxxxx",
    "chainId": 80001,
    "to": "0x362149525adee7A0B20212D76Fad073Cxxxxxx",
    "contractAbi": "Base64 ABI",
    "method": "transfer",
    "params": []
}'

Last updated