Open yangyile1990 opened 1 year ago
Each Solana program (aka "contract" as they are called in Ethereum) has its own data format. It might be borsh, it might be something completely original.
You need to know the layout of the data that you are trying to parse, and then write a parser for it.
func (s Solana) GetLog(blockNum int64, mapToken map[string]anychain.Token) ([]anychain.ContractTokenTran, cerror.CError) { latestBlockNum, erc := s.GetBlockNum() if erc != nil { return nil, erc }
}
How to parse the (transaction.Message.Instructions[0].Data)?