Contains usefully Soroban methods

Hierarchy

  • SrbUtils

Methods

  • Confirm tx

    Parameters

    • hash: string
    • Optional secondsToWait: number

    Returns Promise<GetTransactionResponse>

  • Get Balance Line information if exists

    Parameters

    • sender: string
    • tokenAddress: string

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

  • Submit tx

    Parameters

    • xdrTx: string

    Returns Promise<SendTransactionResponse>

  • Simulate and check if Restore needed

    Returns

    xdrTx restore transaction if it required after check

    Parameters

    • xdrTx: string

      restore

    • sourceAccount: string

    Returns Promise<undefined | string>

  • Submit tx

    Parameters

    • xdrTx: string

    Returns Promise<SubmitTransactionResponse>

Generated using TypeDoc