MCPcopy Create free account
hub / github.com/CPChain/chain / CreateResponse

Method CreateResponse

api/rpc/types.go:104–104  ·  view source on GitHub ↗

Assemble success response, expects response id and payload

(id interface{}, reply interface{})

Source from the content-addressed store, hash-verified

102 ParseRequestArguments(argTypes []reflect.Type, params interface{}) ([]reflect.Value, Error)
103 // Assemble success response, expects response id and payload
104 CreateResponse(id interface{}, reply interface{}) interface{}
105 // Assemble error response, expects response id and error
106 CreateErrorResponse(id interface{}, err Error) interface{}
107 // Assemble error response with extra information about the error through info

Callers 1

handleMethod · 0.65

Implementers 1

jsonCodecapi/rpc/json.go

Calls

no outgoing calls

Tested by

no test coverage detected