Class TronConnect

Hierarchy

  • TronConnect

Constructors

Properties

__bridge: any
__tronConfig: TronConfig
__tronWeb: any
__usdc: any

Accessors

Methods

  • Bridge tokens to another supported chain

    Returns

    Parameters

    • sourceWallet: string
    • destinationWallet: string | PublicKey | default

      provide USDC reciever address on destination chain

    • destination: BridgeNetworks
    • tokenSymbol: string

      only USDC for now

    • amount: string | BigNumber

      in BigNumber units e.g 1_000_000 for 1USDC

    • privateKey: string

    Returns Promise<string>

  • Bridge tokens to another supported chain

    Returns

    Parameters

    • destination: BridgeNetworks
    • tokenSymbol: string

      only USDC for now

    • amount: string | BigNumber

      in BigNumber units e.g 1_000_000 for 1USDC

    • destinationWallet: string | PublicKey | default

      provide USDC reciever address on destination chain

    • sourceWallet: string
    • trWeb: any

    Returns Promise<string>

  • Parameters

    • depositTxHash: string

    Returns Promise<null | {
        amount: string;
        destination: {
            address: string;
            chain: BridgeNetworks;
        };
    }>

  • Provide address of bridge component

    Returns

    Parameters

    • entity: "tokens" | "bridge" | "depositWallet" | "releaseWallet"
    • Optional tokenSymbol: string

      only USDC for now

    Returns string

  • Parameters

    • address: string
    • abi: any

    Returns Promise<any>

  • Provide token balance of an address on the connected evm network

    Returns

    Parameters

    • tokenSymbol: string

      only USDC for now

    • address: string

    Returns Promise<BigNumber>

Generated using TypeDoc