Docs
chromia.com

Function

allowedAssets

  • allowedAssets(
        senderBlockchainRid: Buffer,
        senderId: Buffer,
        recipientId: Buffer,
    ): QueryObject<
        { asset_id: Buffer; min_amount: bigint }[]
        | null,
        { recipient_id: Buffer; sender_blockchain_rid: Buffer; sender_id: Buffer },
    >

    Creates a query object for the get_allowed_assets - query

    Parameters

    • senderBlockchainRid: Buffer

      the blockchain rid of the blockchain that will send the assets

    • senderId: Buffer

      the account id of the account from which the assets will be sent from

    • recipientId: Buffer

      the account id of the account that will receive the assets, i.e., the account that will be created.

    Returns QueryObject<
        { asset_id: Buffer; min_amount: bigint }[]
        | null,
        { recipient_id: Buffer; sender_blockchain_rid: Buffer; sender_id: Buffer },
    >