Query WRX balance
HTTP API:
wallet/getaccount
Description: Query an account information
demo: curl -X POST http://172.104.51.182:16667/wallet/getaccount -d
'{
"address": "414203485a535a4072C9FBFaADDfe2A010AD0BcdB0"
}'
Parameter address: Default hexString
Return: Account object
Welweb Example:
const privateKey = "...";
const address = "WFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz";
//Get account information,Query the wel balance by the balance in the return value.
let tradeobj = await welWeb.wel.getAccount(
address,
);
console.log('- Output:', tradeobj, '\n');
Last updated