You must login to the Backpac Dashboard to obtain a Backpac Endpoint and API Key
- Provision multiple QuickNode endpoints of the same Blockchain Network.
These endpoints will be load balanced across. Each endpoint will be added to the default target group automatically.
- Login into the Backpac dashboard to get an API Key and Backpac endpoint.
For QuickNode users, Backpac automatically configures two default application API Keys.
Example Endpoint: https://ethereum-mainnet-mr.qn.backpac.xyz/{APPAPIKEY}
Just start using the endpoint provided by Backpac for your RPC request.
The Backpac endpoint will load balance RPC request across the provisioned QuickNode endpoints.
- (optional) Add additional RPC node provider endpoints.
Endpoint & API KEY
Application API Key
API KEY:
The key to authenticate request.HTTPS:
The protocol of the endpoint.HTTPS | API KEY:
The application endpoint and API Key.
eth_getTransactionByHash
eth_getTransactionByHash
Returns the information about a transaction from a transaction hash. Below is an example using a Backpac endpoint and application API Key.
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"method": "eth_getTransactionByHash",
"params": [
"0xb1fac2cb5074a4eda8296faebe3b5a3c10b48947dd9a738b2fdf859be0e1fbaf"
],
"id": 1,
"jsonrpc": "2.0"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://ethereum-mainnet-mr.qn.backpac.xyz/{APP_API_KEY}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
API Key types:
Direct:
A primary endpoint with failover to a target group of multiple RPC Endpoints. **Best for the lowest latency. When you provision multiple QuickNode endpoints. They will be added to the default target group.Rules:
The target group is selected based on the listener rules evaluated for the Blockchain Network. By default, only a direct rule is created.