Hierarchy

  • ExternalProvider
    • EthereumProvider

Properties

host?: string
isMetaMask?: boolean
isStatus?: boolean
path?: string
providers?: EthereumProvider[]
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: null | string
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
          • Parameters

            • error: any
            • response: any

            Returns void

      Returns void

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
          • Parameters

            • error: any
            • response: any

            Returns void

      Returns void

Methods

Generated using TypeDoc