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

How to know available UTXOs for C-CHAIN and P-CHAIN? #3695

Open
f-squirrel opened this issue Feb 3, 2025 · 1 comment
Open

How to know available UTXOs for C-CHAIN and P-CHAIN? #3695

f-squirrel opened this issue Feb 3, 2025 · 1 comment

Comments

@f-squirrel
Copy link

Hi folks,

I was digging the documentation but, unfortunately, was unable to find answers.

I need to receive available UXTO in C-CHAIN and P-CHAIN together with their finality (i.e. if I can already use them in future transactions).

I tried using the platform.getUTXOs API with the sourceChain parameter (once for P and once for C chains).

However, the response does not contain the block that includes the UTXO, i.e., I cannot determine whether it is confirmed.
The official documentation says that Avalanche uses Snowman consensus with sub-second finality. However, there is no information on how a user can know if a UTXO/TX is confirmed.

For the C-CHAIN, I can do getAtomicTxStatus with block height; the P-CHAIN does not provide such information.

Can I assume that the status Committed means a UTXO is available for building transactions?

I appreciate your help in advance.

P.S. I have tried to use Glacier API; however, it is minimal in terms of API calls/minute.

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
@f-squirrel and others