()
| 247 | } |
| 248 | |
| 249 | func (c *Client) nextID() json.RawMessage { |
| 250 | id := atomic.AddUint32(&c.idCounter, 1) |
| 251 | return []byte(strconv.FormatUint(uint64(id), 10)) |
| 252 | } |
| 253 | |
| 254 | // SupportedModules calls the rpc_modules method, retrieving the list of |
| 255 | // APIs that are available on the server. |