You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RGB assets are allocated to colorable UTXOs. One UTXO can support more than one allocation, depending on the value of max_allocations_per_utxo (in WalletData) provided at wallet instantiation time.
It would be useful to be able to query how many available allocations slots the wallet has. An example use case would be to know if new colorable UTXOs need to be created, in advance rather in response to an error when e.g. calling blind_receive.
name: allocations
parameters: none
response: a new Allocations struct containing
total_available: the number of total available allocations
map: a map of UTXOs and the respective allocations (given the current value of max_allocations_per_utxo)
key: utxo
value:
used: the number of currently used allocations
available: the number of currently available allocations
With this data, the user can easily know:
if there is at least one available allocation
the total number of possible new allocations, before having to create more UTXOs
the number of UTXOs that can support a new allocation
Notes:
the number of used allocations can be obtained via get_rgb_allocations
the number of available allocations corresponds to the value of max_allocations_per_utxo minus the currently used allocations
The text was updated successfully, but these errors were encountered:
RGB assets are allocated to colorable UTXOs. One UTXO can support more than one allocation, depending on the value of
max_allocations_per_utxo
(inWalletData
) provided at wallet instantiation time.It would be useful to be able to query how many available allocations slots the wallet has. An example use case would be to know if new colorable UTXOs need to be created, in advance rather in response to an error when e.g. calling
blind_receive
.allocations
Allocations
struct containingtotal_available
: the number of total available allocationsmap
: a map of UTXOs and the respective allocations (given the current value ofmax_allocations_per_utxo
)utxo
used
: the number of currently used allocationsavailable
: the number of currently available allocationsWith this data, the user can easily know:
Notes:
get_rgb_allocations
max_allocations_per_utxo
minus the currently used allocationsThe text was updated successfully, but these errors were encountered: