okx / exchain-go-sdk

ExChain go sdk
Other
37 stars 16 forks source link

通过什么方法可以获取其他代币约,比如一个地址的USDT余额的多少 ? #155

Open dashiqiao opened 2 years ago

dashiqiao commented 2 years ago

config, err := gosdk.NewClientConfig(rpcURL, "exchain-65", gosdk.BroadcastBlock, "0.0001okt", 200000,0, "") cli := gosdk.NewClient(config) accInfo, err := cli.Auth().QueryAccount(addr)

这时候只能拿到OKT余额。其他代币余额怎么读取 ?? 求帮助

Zavalynech commented 5 months ago

config, err := gosdk.NewClientConfig(rpcURL, "exchain-65", gosdk.BroadcastBlock, "0.0001okt", 200000,0, "") cli := gosdk.NewClient(config) accInfo, err := cli.Auth ().QueryAccount(адрес)

这时候只能拿到OKT余额。其他代币余额怎么读取 ?? 求帮助