1

I am going to connect OKX wallet in my bitcoin based game app and have one problem in getting native segwit address from okx wallet. I read their developer doc and there are two way to get address. https://www.okx.com/web3/build/docs/sdks/chains/bitcoin/provider

const result = await okxwallet.bitcoin.connect()

let accounts = await okxwallet.bitcoin.requestAccounts();

both return taproot address and I can't get native segwit and other types of address when user connect wallet.

1 Answer 1

1

I have read the doc you posted here, and yes, there are no parameters about the address type, so maybe it defaults to return the segwit address. Maybe you can propose an issue to the dev team to add a new address type parameter.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.