As title, How to make coin's wallet address sanity check algorithm?
To block user's trial of send coin to wrong address or other coin's address.
One easy way is to put something specific at the start of the wallet address.
For example if the wallet is ABCABCABC make it become wsxdrfvcoinABCABCABC, then you always check for that start.
Or, since a wallet comes from a big number, you add something in front making it bigger, like if the large number for wallet has 20 digits you add 45*10^20 to it (so you add 45 in front). Again, at send you check if that rule is kept for the recipient address.
Edit: if you want to make it even more complicated you can add some sort of checksum at the end