Skip to main content

mokiService_setConfig

Sets the Users config.

Parameters

  • Config: json - Users configuration

Returns

success: boolean - Returns true if succeeded

Example

Request

curl https://mainnet.moki.network \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "mokiService_setConfig", "params": [{"push_gateway":"https://gateway.moki.network","token":"0x4543438eab84c39..."}], "id": 1}'

Reponse

Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}