Hierarchy

  • SolanaBridge

Constructors

Properties

sdk: GlitterBridgeSDK

Methods

  • Bridging a token from Solana to other supported network

    Parameters

    • signerAddress: string
    • destinationAddress: string
    • destinationNetwork: BridgeNetworks
    • tokenSymbol: string
    • amount: number

    Returns Promise<undefined | Transaction>

  • Parameters

    • signerAddress: string
    • symbol: string

    Returns Promise<undefined | {
        balanceBn: BigNumber;
        balanceHuman: BigNumber;
    }>

  • Getting token balances by wallet address

    Parameters

    • address: string

    Returns Promise<Map<string, {
        balanceBn: BigNumber;
        balanceHuman: BigNumber;
    }>>

  • Parameters

    • tokenSymbol: string

    Returns Promise<undefined | BridgeTokenConfig>

  • Opting a new token in to the wallet

    Parameters

    • address: string
    • symbol: string

    Returns Promise<undefined | Transaction>

  • Function for checking whether the token is already opted in the wallet address.

    Parameters

    • address: string
    • symbol: string

    Returns Promise<boolean>

  • Sending Raw Transaction over the Solana Network

    Parameters

    • transaction: Buffer
    • connection: "mainnet" | "testnet" | "devnet"

    Returns Promise<string>

Generated using TypeDoc