Skip to content

[Feature Request] Extending the current api explorer to support light wallets up to trezor codebook v2. #24

@SkynetResearchProject

Description

@SkynetResearchProject

Here is a practically working web wallet https://github.com/PIVX-Labs/MyPIVXWallet.git.
It works on the principle of MyEtherWallet. Unlike electrum, this pivx wallet does not use an additional network of electrumx servers.
For its work, you only need an explorer with trezor/codebook/api/v2/
I don't see the point in moving to trezor/codebook, go language and another database.
So I'm currently working on api extension (/ext/ or ext/v2/ )for equidus 1.99. A few features are missing for a quick start.
The main function is /api/v2/utxo. I started modify the code. To receive and send coins, it is enough to add one function /ext/utxo/addr|xpub. Other features: the launch of the masternode and the cold staking wallet can be disabled, commented out.
If you take care of the missing api functions, then other pivx-based projects can quickly adopt this lightweight wallet and your explorer will become even more popular. It can be converted into an apk container.

Addresses from xpub maked.
https://stackoverflow.com/questions/66391617/how-can-i-derive-btc-m44-addresses-from-xpub maked
Mypivxwallet: // If the user creates more than ${MAX_ACCOUNT_GAP} empty wallets we will not be able to sync them! MAX_ACCOUNT_GAP=20

/ext/getaddresstxs/
[{"timestamp":,"txid":"b0bb...","sent":800000,"received":0,"balance":}, send and recive must be swapped, added vout and etp

For pubx (recive>sent or tx.vin=[]) :
[{"address":"1", "path":"m/44/xx/0/1", "timestamp":,"txid":"b0bb...","value":800000, vout: 1", height: xxxxx, confirm: xxxx},
{"address":"1", "path":"","timestamp":,"txid":"b0bb...","value":90000000, vout: 2", height: xxxxx, confirm: xxxx},
{"address":"1", "path":"", "timestamp":,"txid":"b0bb...","value":800000, vout: 3", height: xxxxx, confirm: xxxx},
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions