You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// GetContractMetadataAsBytes retrieves the metadata of a smart contract as a byte slice.
156
+
// The client parameter is a pointer to a Client instance used to make the API call.
157
+
// The chainId parameter is the ID of the blockchain network where the smart contract resides.
158
+
// The contract parameter is the address of the smart contract.
159
+
// The matchType parameter determines the type of method matching to use when retrieving the contract metadata.
160
+
// It returns a byte slice containing the contract metadata, or an error if there was an issue sending the request, decoding the response, or if an invalid matchType was provided.
161
+
//
162
+
// The MethodMatchType enum is used to determine the type of method matching to use:
163
+
// - MethodMatchTypeFull: Use full method matching. This will only return a match if the entire method signature matches.
164
+
// - MethodMatchTypePartial: Use partial method matching. This will return a match if any part of the method signature matches.
165
+
// - MethodMatchTypeAny: This match type is not implemented and will return an error.
166
+
//
167
+
// This function will send a request to the API endpoint specified in the client parameter, using the method determined by the matchType parameter.
168
+
// The method will be set with the chainId, contract address, and file path parameters.
169
+
// If the method fails verification, an error will be returned.
170
+
// If the API call is successful, the response body will be read and returned as a byte slice.
171
+
// If the status code of the response is not 200 OK, an error will be returned.
0 commit comments