1、int类型、address、string进行打包:import ( "encoding/hex" "github.com/ethereum/go-ethereum/accounts/abi" ) ... addressTy, _ := abi.NewType("address", "string", []abi.ArgumentMarshaling{}) bytesTy, _ := abi.NewType("bytes", "string", nil) uint256Ty, _ := abi.NewType("uint256", "uint64", []abi.ArgumentMarshaling{}) args := abi.Arguments{ {Type: addressTy}, {Type: bytesTy}, {Type: uint256Ty} } //尤其注意这里,当string转bytes的时候一定要用hex.DecodeString进行16进制转bytes _params2, _ := hex.DecodeString(params2) packed, err...