deroproject / derohe

DERO Homomorphic Encryption Blockchain Protocol
Other
208 stars 82 forks source link

search TXID in all tokens history #140

Closed Slixe closed 1 year ago

Slixe commented 1 year ago

Description

RPC Method get_transfer_by_txid only search and work for DERO native token while we may want to query all our history including others tokens.

This PR allows to specify for which token we want to research and fallback to search in all if SCID is DERO one and no result was found.

Type of change

Please select the right one.

Which part is impacted ?

Checklist:

License

Im am contributing & releasing the code under DERO Research License (which can be found here).

CaptainDero commented 1 year ago

Why returning SCID if it is already a function argument ?

Slixe commented 1 year ago

Why returning SCID if it is already a function argument ?

Because if we search in default SCID (DERO) and we find the Entry for another token, then we returns in which SCID it got found as rpc.Entry don't have this knowledge.

CaptainDero commented 1 year ago

Ok. Thanks.