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

Determine if utxo is colored on client side #64

Open
cgcardona opened this issue Sep 15, 2019 · 0 comments
Open

Determine if utxo is colored on client side #64

cgcardona opened this issue Sep 15, 2019 · 0 comments

Comments

@cgcardona
Copy link
Contributor

Description

Currently when calling REST's address/utxo it will return all utxo and the client needs to determine if any of the utxo are colored for SLP tokens.

Ex: https://rest.bitcoin.com/v2/address/utxo/simpleledger:qzht6wanjrxqjp6qyla6t856mfhgktg3wcphvqpm6m

You could use isTokenUtxo but that would require an extra network call for each utxo.

  1. We need to make a batch endpoint for that method.
  2. We need a method for decoding OP_RETURN on the client and checking if it's slp.

Does this already exist in slpjs? If so expose it in SLP SDK and add docs.

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

1 participant