You absolutely can sell ASNs or ASN blocks, just like you can sell IPs.
Want to sell an ASN? Ask the buyer for money. When the money is in your account/escrow, transfer the ASN to them. Get money. Sale complete.
But that’s besides the point, this has got nothing to do with ASNs.