Get Native Balance
Endpoint:/evm/wallet/balance
- Socket.IO
- HTTP
socket.emit(
"/evm/wallet/balance",
{
chain: "eth",
wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
},
(response) => {
console.log(response);
}
);
await fetch("https://api.chainworks.co/evm/wallet/balance", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: CHAINWORKS_API_AUTH_TOKEN,
},
body: JSON.stringify({
chain: "eth",
wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
}),
});
Get Token Balance
Endpoint:/evm/wallet/balance/token
- Socket.IO
- HTTP
socket.emit(
"/evm/wallet/balance/token",
{
chain: "eth",
token: "0x6982508145454Ce325dDbE47a25d4ec3d2311933",
wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
},
(response) => {
console.log(response);
}
);
await fetch("https://api.chainworks.co/evm/wallet/balance/token", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: CHAINWORKS_API_AUTH_TOKEN,
},
body: JSON.stringify({
chain: "eth",
token: "0x6982508145454Ce325dDbE47a25d4ec3d2311933",
wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
}),
});

