Options
All
  • Public
  • Public/Protected
  • All
Menu

@stellarguard/stellar-uri

Index

Type aliases

MemoType

MemoType: "none" | "id" | "text" | "hash" | "return"

Replacement

Replacement: object

Type declaration

  • hint: string
  • id: string
  • path: string

Functions

isStellarUri

  • isStellarUri(uri: string): boolean
  • Returns true if the given URI is a SEP-0007 style URI, false otherwise. Currently this only checks whether it starts with 'web+stellar:' and is a valid type.

    Parameters

    • uri: string

      The URI string to check.

    Returns boolean

parseStellarUri

  • Parses a SEP-0007 style URI string and returns a TransactionStellarUri or PayStellarUri, depending on the type.

    throws

    Throws an error if the uri is not a valid SEP-0007 style URI.

    Parameters

    • uri: string

      The URI string to parse.

    Returns TransactionStellarUri | PayStellarUri

Generated using TypeDoc