Create Gas Request

This creates a Gas Request using this method.

API Specification

Create Gas Request

POST https://api.krypcore.com/api/v0/gasless/createGasRequest

Creates a Gas Request under the given instance.

Headers

NameTypeDescription

Authorization*

String

User Auth key obtained

Request Body

NameTypeDescription

protocol*

String

ChainID representing the blockchain protocol

network*

String

The blockchain network for which the gas request is intended

chainId*

String

ChainID representing the blockchain protocol

requestedGasLimit*

String

Requested gas limit for the transaction (in ether)

additionalInformation*

String

Additional information related to the gas request

userId*

String

Dapp ID or user ID associated with the gas request

subscriptionId*

String

Subscription ID of user

{
    "data": null,
    "message": "Gas request created successfully",
    "status": true
}

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/gasless/createGasRequest' \
--header 'Authorization: 81d4a427-xxxx-xxxx-xxxx-f8482816e872' \
--header 'Content-Type: application/json' \
--data '{
"protocol": "80001",
"network": "polygon-mumbai",
"chainId": 80001,
"requestedGasLimit": 0.5,
"additionalInformation": "",
"userId": "DEV_XENO_76_xxxxxxx",
"subscriptionId": "xxxxxxxxxx"
}'

Last updated