Quickstart
Set up your Nonci instance in under 5 minutes
Prerequisites
- MongoDB instance, you can create a free on on MongoDB Atlas
- RabbitMQ instance, you can create a free one on CloudAMQP
- Node.js 16 or higher
Setup
Firstly, clone the repository by running the following command -
Now, install the dependencies -
Now run the setup.sh
script -
This will create an API secret and a keypair for the Nonci vault and populate a default .env
file where you can add the MongoDB and RabbitMQ connection strings as well as make other changes like changing the RPC url.
The public key of your vault will be present in the .env
file. Make sure to fund it with some SOL on the network you want to use in order to pay gas fees and rent for the Nonce accounts.
Now, you can run the API server by running the following command -
You can also run the API server in development mode by running the following command -
Note that the API server also runs the worker process which listens for new transactions and processes them.
Next steps
Usage
Use the Nonci API or SDK in your project to queue transactions