Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIfferent address in transaction receipt when sending BTC #570

Open
kambaroff opened this issue Jun 22, 2022 · 2 comments
Open

DIfferent address in transaction receipt when sending BTC #570

kambaroff opened this issue Jun 22, 2022 · 2 comments

Comments

@kambaroff
Copy link

Why there is different address in transaction receipt? Using BIP84 type.

@abdrasulov
Copy link
Member

Can you please share the details? The steps to reproduce it

@kambaroff
Copy link
Author

kambaroff commented Jun 22, 2022

There is not so much steps to reproduce, everything is as it usually would be done. We are using BIP84 on MainNet.

private val networkType = BitcoinKit.NetworkType.MainNet
private val syncMode = BitcoinCore.SyncMode.NewWallet()
private val bip = Bip.BIP84

bitcoinKit = BitcoinKit( App.instance, seedPhrase.split(" "), "", "Dexoo", networkType, syncMode = syncMode, bip = bip )

Every other functionality is just fine. But after transaction is sent from our wallet, the transaction receipt (blockhain.com, trustwallet) shows that is was sent from different address. Here is the method, nothing much to it:

`override suspend fun sendTransaction(
amount: Double,
address: String
): FullTransaction {
val satoshis = (amount * 10.0.pow(8)).toLong()

    return bitcoinKit.send(
        address,
        satoshis,
        feeRate = feePriority.feeRate,
        sortType = TransactionDataSortType.Shuffle
    )
}`

Our goal here is to show address of sender consistently, so that user can confirm with the sender.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants