Book of the Consulate of the Sea
According to Chiner and Chacon, the Ordinances of the Ribera (i.e. seaside) ( Ordianationis Ripairiœ ), written in 1258, did not yet encode the maritime customs of Barcelona, and that the first reference to "Sea consuls" appears in Barcelona in 1282, just one year before the Consulate of the Sea was created in Valencia. Also note that the consuls of Barcelona had no independence assigned later on in the Book of the Consulate of the Sea. Customs collected in the book would be in part coming from a Barcelona origin,  but many would have been created and consolidated in Valencia, from which have been copied to the subsequently created consulates. According to Arcadi Garcia Sanz, the main difference between the consulates of Barcelona and Valencia would be the fact that the latter had from the start a "royal jurisdiction", and therefore has influenced so strongly in the other consulates in the fifteenth century.