Get Protocol Config using userId and ChainId
The "Get Protocol Config" API endpoint provided by Krypcore allows users to retrieve protocol configurations under a given instance based on the provided user ID and Chain ID.
API Specification
Get Protocol Config
POST
https://api.krypcore.com/api/v0/gasless/getProtocolConfig/userIdAndChainId
Get Protocol Config under the given instance.
Headers
Name
Type
Description
Authorization*
String
User Auth key obtained
Request Body
Name
Type
Description
chainId*
String
Chain ID representing the blockchain protocol
dAppId*
String
Dapp ID associated with the application.
{
"data": null,
"message": "fetched protocol and gas config details",
"status": true
}
Take a look at how you might call this method using our official libraries, or via curl
curl --location 'https://web3-proxy-dev.krypcore.com/api/v0/gasless/getProtocolConfig/userIdAndChainId' \
--header 'Authorization: 81d4a427-xxxx-xxxx-xxxx-f8482816e872' \
--header 'Content-Type: application/json' \
--data '{"userId":"DEV_GSTE_75_xxxxxxxx","chainId":80001}
'
Last updated
Was this helpful?