Skip to content

Commit

Permalink
More formatting :D
Browse files Browse the repository at this point in the history
  • Loading branch information
duelingbenjos committed Jan 8, 2025
1 parent f89aa80 commit 99f4c32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/node/interfaces/graphql.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# GraphQLOverview
# GraphQL

## Overview

The `Blockchain Data Service (BDS)` indexes all transaction data, state & history in a Postgres DB which can be queried with using the `GraphQL` interface.

Expand All @@ -10,7 +12,7 @@ testnet : https://testnet.xian.org/graphiql

mainnet : https://node.xian.org/graphiql

# Examples
## Examples

## Queries

Expand Down Expand Up @@ -52,7 +54,7 @@ query QueryState {
}
```

### Querying Events
## Querying Events

In this example we want to get all events where any token is sent to address `1565ff3ef4e54a73e5782f5c1c30c7106142370f90495ef3bb6dd6c2e17dc158`

Expand Down
6 changes: 4 additions & 2 deletions src/smart-contracts/events.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Events

## Overview

LogEvents are used to track & index when your smart contract performs an operation.

Emitted events are automatically recorded & indexed by the `Blockchain Data Service Node (BDS)` & queryable via the [GraphQL API](../node/interfaces/graphql).

# Use-cases
## Use-cases

In many situations in your app, you will want to track when something happens in your smart contract.

Expand All @@ -16,7 +18,7 @@ Here are some example situations when you may want to emit an event from your co
- When a transfer is sent from a specific account.
- When an account approves tokens to be used by a smart contract.

# Usage
## Usage

### Smart Contract

Expand Down

0 comments on commit 99f4c32

Please sign in to comment.