It is unclear what you are asking.
In short, all licensed nodes, master, data, machine learning, CCR nodes all count towards license. Ingest only or coordinator only do not count towards licensing.
If you apply a license to a node or use the API or use Kibana, that license is applied to all license nodes in the cluster.
The license count is equal to the sum of all the licenseable nodes.
I do not understand your distinction of on-prem for the master.
Also, if you want to use CCR, both clusters need to be at the same license level.