Files
2022-08-31 14:21:25 +03:00

38 lines
636 B
Swift

//
// EOSNodesQueryRequest.swift
//
//
// Created by Juraldinio on 01.08.2022.
//
import Foundation
struct EOSNodeRequest: Encodable {
// MARK: - GraphQL
let operationName = "getEOSNodes"
let query: String = #"""
query getEOSNodes {
getEOSNodes {
nodes {
url
}
}
}
"""#.trimCompact()
let variables: [String: String]? = nil
}
struct EOSNodesResponse: GraphQLResponse {
static let node = "getEOSNodes"
struct Node: Decodable {
let url: String
}
let nodes: [Node]
}