@allbridge/bridge-core-sdk
    Preparing search index...

    Interface SrbUtils

    Contains usefully Soroban methods

    interface SrbUtils {
        buildChangeTrustLineXdrTx(params: TrustLineParams): Promise<string>;
        confirmTx(
            hash: string,
            secondsToWait?: number,
        ): Promise<GetTransactionResponse>;
        getBalanceLine(
            sender: string,
            tokenAddress: string,
        ): Promise<
            BalanceLineAsset<"credit_alphanum4" | "credit_alphanum12">
            | undefined,
        >;
        sendTransactionSoroban(xdrTx: string): Promise<SendTransactionResponse>;
        simulateAndCheckRestoreTxRequiredSoroban(
            xdrTx: string,
            sourceAccount: string,
        ): Promise<string | undefined>;
        submitTransactionStellar(xdrTx: string): Promise<SubmitTransactionResponse>;
    }
    Index

    Methods

    • Confirm tx

      Parameters

      • hash: string
      • OptionalsecondsToWait: number

      Returns Promise<GetTransactionResponse>

    • Get Balance Line information if exists

      Parameters

      • sender: string
      • tokenAddress: string

      Returns Promise<BalanceLineAsset<"credit_alphanum4" | "credit_alphanum12"> | undefined>

    • Submit tx

      Parameters

      • xdrTx: string

      Returns Promise<SendTransactionResponse>

    • Simulate and check if Restore needed

      Parameters

      • xdrTx: string

        restore

      • sourceAccount: string

      Returns Promise<string | undefined>

      xdrTx restore transaction if it required after check

    • Submit tx

      Parameters

      • xdrTx: string

      Returns Promise<SubmitTransactionResponse>