OmniLayer / omnicore

OmniCore staging tree
http://www.omnilayer.org/
MIT License
758 stars 230 forks source link

How to get list unspent transactions for specific propery ID? #1047

Open MohseniBigBoy opened 4 years ago

MohseniBigBoy commented 4 years ago

I use omnicored and JSON RPC to interaction with blockchain. my wallet has some bitcoin to do omni transactions and I send a transaction using omni_send method. I want to use omni_sendrawtx but for create raw transaction I want to list all unspent transactions for specific token(property ID).

How I get all list unspent transactions for the specific property ID?

jackyzq commented 4 years ago

You can use any bitcoin UTXO for all tokens. There is no such thing as a specific token's UTXO. You only need to specify the propertyID in the embed data in the output of a bitcoin transaction. It is the data field that will determine which specific token will be sent.