Graph

Reflex provides informational APIs to fetch information from edges and nodes on the Lightning Network.

API

You can push and get invoice information through the API.

This is a GraphQL API so you can fetch as much or as little information as desired from the different queries and mutations.

Queries

getGraph > nodes > find_one

Use this query to get information from a specific node on the network.

query Nodes($pubkey: String!) {
  getGraph {
    nodes {
      find_one(pubkey: $pubkey) {
        id
        node {
          alias
          color
          id
          pubkey
          sockets {
            id
            ip_address
            ip_type
            is_current
            port
          }
        }
        amboss {
          id
          socials {
            created_at
            id
            type
            value
          }
          identity {
            account {
              account_type
              id
              verification_result
              verification_status
            }
            id
          }
        }
        edges {
          id
          list {
            id
            short_channel_id
            onchain {
              id
              open_transaction {
                id
                transaction_id
                transaction_vout
                vin_addresses_list
                vout_addresses_list
              }
            }
          }
        }
      }
    }
  }
}
Variables
VariableDescriptionDefaultMandatory
pubkeyThe public key of the node ✅
{
  "pubkey": "03a1f3afd646d77bdaf545cceaf079bab6057eae52c6319b63b5803d0989d6a72f"
}