function find_allowed_assets(sender_blockchain_rid: byte_array, sender_id: byte_array, recipient_id: byte_array): map<byte_array, big_integer>?

Finds all assets that a certain sender on a certain chain can send to the specified account ID to allow its registration.

This function can return that no asset is allowed. This means:

  • no rule allows account registration for the specified combination of parameters; or
  • a rule that allows this specific registration is found, but the asset that it requires is not yet registered on this chain.

Parameters

  • sender_blockchain_rid — the RID of the blockchain where the transfer will originate. This blockchain's RID for on-chain transfers.
  • sender_id — the ID of the sender account
  • recipient_id — the ID of the account that will be registered

Returns

a map<asset_id: byte_array, amount: big_integer> or null if there's no rule allowing this specific account registration at this moment.

© 2024 Chromia