finally , the gold had been divided ; each man had taken two of the chests , swearing on his blood to keep the secret and hold the treasure faithfully , in trust for his rightful monarch , king james .