I want to fetch the list of all functions with their parameters which are present in any smart contract.
This can be done only for contracts for which you have the ABI. Etherscan allows people to verify the contracts and the ABI becomes available through Etherscan API. Then you just need to read the JSON file to find the function names and the types.
Hope this helps.