from web3 import Web3
w3 = Web3(Web3.HTTPProvider("https://YOUR_QUICKNODE_ENDPOINT_HERE.com"))
resp = w3.provider.make_request(
'bb_getBalanceHistory',
["0x91b51c173a4bDAa1A60e234fC3f705A16D228740", {"from":"1683684000", "to":"1700042400", "fiatcurrency":"usd", "groupBy":3600}]
)
print(resp)
require 'eth'
client = Eth::Client.create "https://YOUR_QUICKNODE_ENDPOINT_HERE.com"
payload = {
"id":1,
"jsonrpc":"2.0",
"method":"bb_getBalanceHistory",
"params": ["0x91b51c173a4bDAa1A60e234fC3f705A16D228740", {"from":"1683684000", "to":"1700042400", "fiatcurrency":"usd", "groupBy":3600}]
}
response = client.send(payload.to_json)
puts response
const ethers = require("ethers");
(async () : {
const provider = new ethers.providers.JsonRpcProvider("https://YOUR_QUICKNODE_ENDPOINT_HERE.com");
const network = await provider.send(
"bb_getBalanceHistory",
["0x91b51c173a4bDAa1A60e234fC3f705A16D228740", {"from":"1683684000", "to":"1700042400", "fiatcurrency":"usd", "groupBy":3600}]
);
console.log(network);
})();
curl https://YOUR_QUICKNODE_ENDPOINT_HERE.com \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"bb_getBalanceHistory","params": ["0x91b51c173a4bDAa1A60e234fC3f705A16D228740", {"from":"1683684000", "to":"1700042400", "fiatcurrency":"usd", "groupBy":3600}],"id":1,"jsonrpc":"2.0"}'