We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why are Parameters required?
// ReadRequest fills the request object for the RPC method. func (c *CodecRequest) ReadRequest(args interface{}) error { if c.err == nil { if c.request.Params != nil { // JSON params is array value. RPC params is struct. // Unmarshal into array containing the request struct. params := [1]interface{}{args} c.err = json.Unmarshal(*c.request.Params, ¶ms) } else { c.err = errors.New("rpc: method request ill-formed: missing params field") } } return c.err }
Seems the specification says they are optional
4.2 Parameter Structures
If present, parameters for the rpc call MUST be provided as a Structured value. Either by-position through an Array or by-name through an Object.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why are Parameters required?
Seems the specification says they are optional
4.2 Parameter Structures
If present, parameters for the rpc call MUST be provided as a Structured value. Either by-position through an Array or by-name through an Object.
The text was updated successfully, but these errors were encountered: