Skip to content

Commit

Permalink
Remove GRPC from FCL docs (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink authored Nov 21, 2024
1 parent 85a0853 commit 121ac4d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions docs/tools/clients/fcl-js/sdk-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,6 @@ config({
})
```

📖 **gRPC Access API URLs** can be found [here](../../../networks/node-ops/access-onchain-data/access-nodes/accessing-data/access-api.md#flow-access-node-endpoints). `sdk.transport` must be specified if you wish to use the gRPC API. The public Flow gRPC access nodes are accessible at:
- Testnet `https://access-testnet.onflow.org`
- Mainnet `https://access-mainnet.onflow.org`
- Local Emulator `127.0.0.1:3569`

For local development, use the [flow emulator](https://github.com/onflow/flow-emulator) which once started provides an HTTP access endpoint at `127.0.0.1:8888` and a gRPC access endpoint at `127.0.0.1:3569`.

If using the gRPC Access API, the `sdk.transport` configuration key must be populated as this value defaults to the HTTP API transport. The SDK can be configured to use the gRPC API transport as follows:
```javascript
import { config } from "@onflow/fcl"
import { send as transportGRPC } from "@onflow/transport-grpc"

config({
"accessNode.api": "https://access-testnet.onflow.org",
"sdk.transport": transportGRPC
})
```

## Querying the Flow Network
After you have established a connection with an access node, you can query the Flow network to retrieve data about blocks, accounts, events and transactions. We will explore how to retrieve each of these entities in the sections below.

Expand Down

0 comments on commit 121ac4d

Please sign in to comment.