Git Product home page Git Product logo

kuber's Introduction

Kuber

Haskell library and API server for composing balanced Cardano transactions.

You can test Kuber on Cardano testnet via this playground interface : Kuber-Playground. No installation required.

Docs

An example (JSON API)

To pay Ada to one or more addresses, you can use compose the following transaction in the playground and execute them using Wallet extension like Nami and Eternl. The UTXOs will be selected using your browser wallet.

{
    "outputs": [
        {
            "address": "addr_test1qrmntnd29t3kpnn8uf7d9asr3fzvw7lnah55h52yvaxnfe4g2v2ge520usmkn0zcl46gy38877hej5cnqe6s602xpkyqtpcsrj",
            "value": "10A"
        },
        {
            "address": "addr_test1qpg8r3qvm7qm75p5zjq0c6hj5n2qfw3jp4ppluf7caygyfxv3a6l0p0x9q2e6hjeu62z0g5slxzr4hzjr9x3emnxd5qq65n7xz",
            "value": "20A"
        }
    ]
}

If you're using Kuber as an API, you'll need to add selections field to indicate the UTXOs to use while composing the transactions. See relevant examples here.

For more examples, check here.

Example Project using Kuber

cardano-marketplace

Run Kuber server with docker-compose

Kuber can be stared easily with docker-compose.yml file. But you will have to wait for cardano-node to sync to latest block

git clone https://github.com/dquadrant/kuber.git
git checkout 2.3.2
docker-compose up -d

If you want to build docker image locally, you can use the helper script

$ ./.ci/build

Building locally

The system packages and dependencies required for building Kuber is the same as that of cardano-node. The steps are described in detail in the documentation of building-cardano-node-from-sources.

In summary, to prepare your system for building kuber from sources, you have to: - install system dependencies for ghc and cardano-node - install ghc compiler and tools with ghcup - install iokhk patch of libsodium on the system

Once everything is installed and ready, kuber will also be ready to run

cabal update
CARDANO_NODE_SOCKET_PATH=/home/user/.cardano/preprod/node.socket NETWORK=preprod cabal run exe:kuber

This will start kuber on port 8081.

kuber's People

Contributors

mesudip avatar nabinpkl avatar nabinkawan avatar xoriole avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.