Ink
Step 1: To access Ink, use the following native access endpoints:
- Network: Ink Mainnet
- Request Type: POST
https://svc.blockdaemon.com/ink/testnet/native
Step 2: Authenticate your request using your API key. You can include the API key using either of the following headers:
Authorization: Bearer YOUR_API_KEY
X-API-Key: YOUR_API_KEY
Step 3: Specify an Ink method in the request body:
Learn more about Ink RPC Methods here.
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using eth_estimateGas to generate and return an estimate of the gas needed for the transaction to complete.
curl -X \
POST https://svc.blockdaemon.com/ink/testnet/native \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "eth_estimateGas", "params": []}'
The following is a typical response you will get:
{
"id":1,
"jsonrpc": "2.0",
"result": "0x5208" // 21000
}
👋 Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.
Updated 27 days ago