bnb-chain / javascript-sdk

Javascript SDK to communicate with BNB Beacon Chain.
Apache License 2.0
381 stars 240 forks source link

Get transaction with txid #222

Closed Sotatek-CongNguyen closed 5 years ago

Sotatek-CongNguyen commented 5 years ago

How I can get one transaction with transaction id using sdk? Tks

kaiansaari commented 5 years ago

It's not supported with the SDK currently, use the api instead: https://docs.binance.org/api-reference/dex-api/paths.html#apiv1txhash

kaiansaari commented 5 years ago

This is now supported. You can close this issue.

https://github.com/binance-chain/javascript-sdk/blob/master/docs/jsdoc.md#module_client.BncClient+getTx

Sotatek-CongNguyen commented 5 years ago

I think that it's better if function can pass option format as api

kaiansaari commented 5 years ago

Will add that in my next update if someone else hasn't. Thanks