https://github.com/eddytheco/qclient-iota
https://github.com/eddytheco/qclient-iota
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eddytheco/qclient-iota
- Owner: EddyTheCo
- License: gpl-3.0
- Created: 2022-11-30T17:14:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T13:49:03.000Z (about 1 year ago)
- Last Synced: 2024-03-28T15:04:55.003Z (about 1 year ago)
- Language: C++
- Homepage: https://eddytheco.github.io/Qclient-IOTA/
- Size: 115 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IOTA client to communicate with the REST API of the nodes
[TOC]
This repo implements a client to communicate with the IOTA nodes using the [Core REST API](https://github.com/iotaledger/tips/blob/main/tips/TIP-0025/tip-0025.md) and the [UTXO Indexer REST API](https://github.com/iotaledger/tips/blob/main/tips/TIP-0026/tip-0026.md).
## Installing the library
### From source code
```
git clone https://github.com/EddyTheCo/Qclient-IOTA.gitmkdir build
cd build
qt-cmake -G Ninja -DCMAKE_INSTALL_PREFIX=installDir -DUSE_THREADS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DBUILD_DOCS=OFF ../Qclient-IOTAcmake --build .
cmake --install .
```
where `installDir` is the installation path.
One can choose to build or not the tests and the documentation with the `BUILD_TESTING` and `BUILD_DOCS` variables.
The use or not of multithreading is set by the `USE_THREADS` variable.### From GitHub releases
Download the releases from this repo.## Adding the libraries to your CMake project
```CMake
include(FetchContent)
FetchContent_Declare(
IotaClient
GIT_REPOSITORY https://github.com/EddyTheCo/Qclient-IOTA.git
GIT_TAG vMAJOR.MINOR.PATCH
FIND_PACKAGE_ARGS MAJOR.MINOR CONFIG
)
FetchContent_MakeAvailable(IotaClient)
target_link_libraries( IotaClient::qclient)
```## API reference
You can read the [API reference](https://eddytheco.github.io/Qclient-IOTA/) here, or generate it yourself like
```
cmake -DBUILD_DOCS=ON ../
cmake --build . --target doxygen_docs
```## Contributing
We appreciate any contribution!
You can open an issue or request a feature.
You can open a PR to the `develop` branch and the CI/CD will take care of the rest.
Make sure to acknowledge your work, and ideas when contributing.