Sirius is an RESTful API that allows developers to integrate the Stellar blockchain into your application, supporting the following features:
- Account creation
- Account balance retrieval
- Account transaction history retrieval
- Transaction submission
- Transaction status retrieval
- Transaction fee retrieval
- Address validation
- Go 1.20 or higher
- Clone the repo
git clone https://github.com/vidalpaul/sirius.git
or (using GitHub CLI)
gh repo clone vidalpaul/sirius
- Install Go dependencies
go mod download
- Build the server
go build
- Run the server
go run .
POST /account
{
"network": "testnet"
}
{
"address": "***"
}
GET /account/balance
{
"network": "testnet",
"address": "***"
}
{
"balance": "***"
}
GET /account/transactions
{
"network": "testnet",
"address": "***"
}
POST /account/transaction
{
"network": "testnet",
"address": "***",
"destination": "***",
"amount": "***",
"memo": "***"
}
{
"hash": "***"
}
GET /account/transaction
{
"network": "testnet",
"address": "***",
"hash": "***"
}
{
"status": "***"
}
GET /account/transaction/fee
{
"network": "testnet",
"address": "***"
}
{
"fee": "***"
}
GET /address/validate
{
"network": "testnet",
"address": "***"
}
{
"valid": true
}
To run tests, run the following command
go test
Distributed under the MIT License. See LICENSE
for more information.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request