bitcoinjs / bitcoinjs-lib

A javascript Bitcoin library for node.js and browsers.
MIT License
5.6k stars 2.08k forks source link

support USDT trading? #1532

Closed DingGeng-GitHub closed 4 years ago

DingGeng-GitHub commented 4 years ago

"bitcoinjs-lib": "^5.1.7",

Please,does the latest version support USDT trading?

junderw commented 4 years ago

Yes, you can send Omni based USDT using this library.

Check the examples here, and read the thread until the end. https://github.com/bitcoinjs/bitcoinjs-lib/issues/1176

Once you figured out how to do it on v4, you can read the integration tests for v5 to do the same for PSBT instead of TransactionBuilder.

junderw commented 4 years ago

I rewrote the example given in the thread for v5.1

https://github.com/bitcoinjs/bitcoinjs-lib/issues/1176#issuecomment-574078373