Module: Web3::ShhCalls

Defined in:
lib/shh_calls.rb

Instance Method Summary collapse

Instance Method Details

#shh_addToGroup(address) ⇒ Object



34
35
36
37
# File 'lib/shh_calls.rb', line 34

def shh_addToGroup(address)
response = do_request("shh_addToGroup",[address])
response["result"]
end

#shh_getFilterChanges(id) ⇒ Object



52
53
54
55
# File 'lib/shh_calls.rb', line 52

def shh_getFilterChanges(id)
response = do_request("shh_getFilterChanges",[id])
response["result"]
end

#shh_getMessages(id) ⇒ Object



58
59
60
61
# File 'lib/shh_calls.rb', line 58

def shh_getMessages(id)
response = do_request("shh_getMessages",[id])
response["result"]
end

#shh_hasIdentity(address) ⇒ Object



22
23
24
25
# File 'lib/shh_calls.rb', line 22

def shh_hasIdentity(address)
response = do_request("shh_hasIdentity",[address])
response["result"]
end

#shh_newFilter(filter_object) ⇒ Object



40
41
42
43
# File 'lib/shh_calls.rb', line 40

def shh_newFilter(filter_object)
response = do_request("shh_newFilter",[filter_object])
to_decimal response["result"]
end

#shh_newGroupObject



28
29
30
31
# File 'lib/shh_calls.rb', line 28

def shh_newGroup()
response = do_request("shh_newGroup")
response["result"]
end

#shh_newIdentityObject



16
17
18
19
# File 'lib/shh_calls.rb', line 16

def shh_newIdentity()
response = do_request("shh_newIdentity")
response["result"]
end

#shh_post(post_object) ⇒ Object



10
11
12
13
# File 'lib/shh_calls.rb', line 10

def shh_post(post_object)
response = do_request("shh_post",[post_object])
response["result"]
end

#shh_uninstallFilter(id) ⇒ Object



46
47
48
49
# File 'lib/shh_calls.rb', line 46

def shh_uninstallFilter(id)
response = do_request("shh_uninstallFilter",[id])
response["result"]
end

#shh_versionObject



4
5
6
7
# File 'lib/shh_calls.rb', line 4

def shh_version()
response = do_request("shh_version")
response["result"]
end