Add Whitelisted Contract Linked to DApp

This API allows you to add a whitelisted contract linked to a decentralized application (DApp) within a specified instance

API Specification

Add Whitelisted Contract Linked to DApp

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

Add Whitelisted Contract Linked to DApp under the given instance.

Headers

NameTypeDescription

Authorization*

String

User Auth key obtained

Request Body

NameTypeDescription

contractAddress*

String

The address of the contract that needs to be added to the whitelist

contractName*

String

The name of the contract

linkedDAppId*

String

The ID of the DApp that linked to the contract

gasLimitConfigured*

Number

The configured gas limit for the transaction

chainId

Number

chain id

{
    "data": null,
    "message": "Whitelisted contract 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/addWhitelistedContractLinkedToDApp' \
--header 'Authorization: 03374415-xxxx-xxxx-xxxx-1277d243034e' \
--header 'Content-Type: application/json' \
--data '{
"contractAddress": "0x5443702dd8eb3e26c31a20b81fcfd292cfxxxxxx",
"contractName": "demo",
"linkedDAppId": "DEV_DEMO_PACE_46_xxxxxxxx",
"gasLimitConfigured": 0.5,
"chainId": 80001
}'

Last updated