Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/web3/packages/web3-shh/types/index.d.ts>Shh

Deno / TypeScript to Ethereum Connector
Latest
class Shh
import { Shh } from "https://deno.land/x/web3@v0.11.1/packages/web3-shh/types/index.d.ts";

Constructors

new
Shh()
new
Shh(provider: provider)
new
Shh(provider: provider, net: net.Socket)

Properties

BatchRequest: new () => BatchRequest
readonly
currentProvider: provider
readonly
givenProvider: any
net: Network

Methods

addPrivateKey(privateKey: string, callback?: (error: Error, privateKey: string) => void): Promise<string>
addSymKey(symKey: string, callback?: (error: Error, key: string) => void): Promise<string>
deleteKeyPair(id: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
deleteMessageFilter(id: string, callback?: (error: Error, result: string) => void): Promise<boolean>
deleteSymKey(id: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
extend(extension: Extension): any
generateSymKeyFromPassword(password: string, callback?: (error: Error, key: string) => void): Promise<string>
getFilterMessages(id: string, callback?: (error: Error, result: string) => void): Promise<Notification[]>
getInfo(callback?: (error: Error, info: Info) => void): Promise<Info>
getPrivateKey(id: string, callback?: (error: Error, privateKey: string) => void): Promise<string>
getPublicKey(id: string, callback?: (error: Error, publicKey: string) => void): Promise<string>
getSymKey(id: string, callback?: (error: Error, key: string) => void): Promise<string>
getVersion(callback?: (error: Error, version: string) => void): Promise<string>
hasKeyPair(id: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
hasSymKey(id: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
markTrustedPeer(enode: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
newKeyPair(callback?: (error: Error, key: string) => void): Promise<string>
newMessageFilter(options?: SubscriptionOptions, callback?: (error: Error, result: string) => void): Promise<string>
newSymKey(callback?: (error: Error, key: string) => void): Promise<string>
post(object: PostWithSymKey | PostWithPubKey, callback?: (error: Error, result: string) => void): Promise<string>
setMaxMessageSize(size: number, callback?: (error: Error, result: boolean) => void): Promise<boolean>
setMinPoW(pow: number, callback?: (error: Error, result: boolean) => void): Promise<boolean>
setProvider(provider: provider): boolean
subscribe(
string: "messages",
callback?: (
error: Error,
message: Notification,
subscription: any,
) => void
,
): Subscribe

Static Properties

readonly
givenProvider: any
readonly
providers: Providers