What to write in the contract, how to declare a transfer to a foreign buyer, and what endorsement to keep.