mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 22:26:30 +00:00
16 lines
221 B
Go
16 lines
221 B
Go
package connector
|
|
|
|
func NewAPI(s *Service) *API {
|
|
return &API{
|
|
s: s,
|
|
}
|
|
}
|
|
|
|
type API struct {
|
|
s *Service
|
|
}
|
|
|
|
func (api *API) CallRPC(inputJSON string) (string, error) {
|
|
return api.s.rpcClient.CallRaw(inputJSON), nil
|
|
}
|