https://github.com/sisou/gleam-nimiq-rpc
https://github.com/sisou/gleam-nimiq-rpc
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sisou/gleam-nimiq-rpc
- Owner: sisou
- Created: 2025-02-25T16:47:41.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-02-28T13:41:42.000Z (3 months ago)
- Last Synced: 2025-03-10T22:49:23.356Z (3 months ago)
- Language: Gleam
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- nimiq-awesome - Nimiq JSON-RPC Client for Gleam - nimiq-rpc)) ([@sisou](https://github.com/sisou)): Gleam library for Nimiq JSON-RPC interaction (Developer Resources / Rpc)
README
# Nimiq JSON-RPC Client for Gleam
[](https://hex.pm/packages/nimiq_rpc)
[](https://hexdocs.pm/nimiq_rpc/)## Installation
```sh
gleam add nimiq_rpc
```## Usage
```gleam
import gleam/ioimport nimiq_rpc
import nimiq_rpc/dispatchers/blockchainpub fn main() {
let client = nimiq_rpc.client("http://localhost:8648")let height = client |> blockchain.get_block_number(timeout: 1000)
io.debug(height)
}
```