SteemURL

public struct SteemURL

Type representing a Steem signing URL

See specification at https://github.com/steemit/steem-uri-spec

  • All errors SteemURL can throw.

    See more

    Declaration

    Swift

    public enum Error : Swift.Error
  • Url params, encoded as query strings.

    See more

    Declaration

    Swift

    public struct Params : Equatable
  • The signing action.

    See more

    Declaration

    Swift

    public enum PayloadType : String, Equatable
  • The signing params.

    Declaration

    Swift

    public let params: Params
  • Create a new SteemURL from a custom payload.

    Note

    An invalid payload will cause the resolve() method to throw.

    Declaration

    Swift

    public init(type: PayloadType, params: Params, payload: Any)
  • Create a new SteemURL from a string

    Declaration

    Swift

    public init?(string: String)
  • Create a new SteemURL from a URL.

    Declaration

    Swift

    public init?(url: URL)
  • Create a new SteemURL from a set of url components.

    Declaration

    Swift

    public init?(urlComponents url: URLComponents)
  • Create a new SteemURL with a transaction, steem://sign/tx/...

    Declaration

    Swift

    public init?(transaction: Transaction, params: Params = Params())
  • Create a new SteemURL with an operation, steem://sign/op/...

    Declaration

    Swift

    public init?(operation: OperationType, params: Params = Params())
  • Create a new SteemURL with several operations, steem://sign/ops/...

    Declaration

    Swift

    public init?(operations: [OperationType], params: Params = Params())
  • Returns the operations contained in the signing URL.

    Declaration

    Swift

    public func getOperations() throws -> [OperationType]
  • Options used to resolve a signing url to a signer and transaction.

    See more

    Declaration

    Swift

    public struct ResolveOptions
  • Resolve this url to a signer and transaction.

    Declaration

    Swift

    public func resolve(with options: ResolveOptions) throws -> Transaction
  • Used to resolve callback urls, should be populated after signed txn has been broadcast.

    See more

    Declaration

    Swift

    public struct CallbackContext
  • Resolves the callback URL.

    Declaration

    Swift

    public func resolveCallback(with ctx: CallbackContext) -> URL?

    Return Value

    The callback URL with variables populated or nil if no callback param was set.

  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public static func == (lhs: SteemURL, rhs: SteemURL) -> Bool