I would like to ask for the help.
I'm just starting with the Solana contract interacting (I have experiences with EVM) and I'm now struggling with how to call custom foreign programs. Is there any way how to obtain existing programs methods/types in a similar way like in EVM and ABI?
For example, when I would like to transfer token directly with web3.TransactionInstruction() instead of splToken.Token.createTransferInstruction(), is there any way how to get params/types directly from the program on blockchain without having external documentation?
I would like to automatize some contracts but I don't have docs for them.
I tried connection.getTransaction() to get existing transactions but there are no types and BufferLayout information. I also tried all SolScanners etc but also I didn't find any info about param names and types.
Is there any way how to do that in Solana? Thanks