Constructors

Properties

bridgeEndpoint: "https://bglswap.com/app/" = 'https://bglswap.com/app/'
chainId: string | number

Member

chainId The chainId of the network to use

chainName: string
web3: Web3<RegisteredSubscription>

Member

web3 instance to use.

Methods

  • Parameters

    • from: string
    • to: string
    • amount: number

    Returns Promise<{
        blockHash: string;
        blockNumber: bigint;
        contractAddress?: string;
        cumulativeGasUsed: bigint;
        effectiveGasPrice?: bigint;
        events?: {};
        from: string;
        gasUsed: bigint;
        logs: {
            address?: string;
            blockHash?: string;
            blockNumber?: bigint;
            data?: string;
            id?: string;
            logIndex?: bigint;
            removed?: boolean;
            topics?: string[];
            transactionHash?: string;
            transactionIndex?: bigint;
        }[];
        logsBloom: string;
        root: string;
        status: bigint;
        to: string;
        transactionHash: string;
        transactionIndex: bigint;
        type?: bigint;
    }>

  • Parameters

    • account: string
    • message: string

    Returns Promise<string | {
        message?: string;
        messageHash: string;
        r: string;
        s: string;
        signature: string;
        v: string;
    }>

  • Parameters

    • chainId: string | number

    Returns boolean

  • Parameters

    • __namedParameters: WBGLBGLExchangePair

    Returns Promise<{
        blockHash: string;
        blockNumber: bigint;
        contractAddress?: string;
        cumulativeGasUsed: bigint;
        effectiveGasPrice?: bigint;
        events?: {};
        from: string;
        gasUsed: bigint;
        logs: {
            address?: string;
            blockHash?: string;
            blockNumber?: bigint;
            data?: string;
            id?: string;
            logIndex?: bigint;
            removed?: boolean;
            topics?: string[];
            transactionHash?: string;
            transactionIndex?: bigint;
        }[];
        logsBloom: string;
        root: string;
        status: bigint;
        to: string;
        transactionHash: string;
        transactionIndex: bigint;
        type?: bigint;
    }>

Generated using TypeDoc