Properties
Optional
host
host?: string
Optional
isMetaMask
isMetaMask?: boolean
Optional
isStatus
isStatus?: boolean
Optional
path
path?: string
Optional
request
request?: ((request: {
method: string;
params?: any[];
}) => Promise<any>)
Type declaration
-
- (request: {
method: string;
params?: any[];
}): Promise<any>
-
Parameters
-
request: {
method: string;
params?: any[];
}
-
method: string
-
Optional
params?: any[]
Returns Promise<any>
selectedAddress
selectedAddress: null | string
Optional
send
send?: ((request: {
method: string;
params?: any[];
}, callback: ((error: any, response: any) => void)) => void)
Type declaration
-
- (request: {
method: string;
params?: any[];
}, callback: ((error: any, response: any) => void)): void
-
Parameters
-
request: {
method: string;
params?: any[];
}
-
method: string
-
Optional
params?: any[]
-
callback: ((error: any, response: any) => void)
-
- (error: any, response: any): void
-
Returns void
Returns void
Optional
sendAsync
sendAsync?: ((request: {
method: string;
params?: any[];
}, callback: ((error: any, response: any) => void)) => void)
Type declaration
-
- (request: {
method: string;
params?: any[];
}, callback: ((error: any, response: any) => void)): void
-
Parameters
-
request: {
method: string;
params?: any[];
}
-
method: string
-
Optional
params?: any[]
-
callback: ((error: any, response: any) => void)
-
- (error: any, response: any): void
-
Returns void
Returns void