Skip to content

karkigrishmin/sutra-cardano-sdk

 
 

Repository files navigation

Sutra

** Offchain transaction builder framework for cardano using Elixr.**

Warning

SDK is under heavy development and API might change until we have stable version.

Installation

If available in Hex, the package can be installed by adding sutra_offchain to your list of dependencies in mix.exs:

def deps do
  [
    {:sutra_offchain, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/sutra_offchain.

Running examples with Yaci Provider

Here's how you can run the send_ada.exs example via Yaci Provider.

1- Start Yaci-Devkit separately.
2- Generate and topup addresses using yaci-cli.
3- Update examples/simple/send_ada.exs with mnemonic and destination address.
4- Build docker image with docker build -t sutra-cardano .
5- Run docker with ./examples/run-via-docker.sh. This should take you to iex with the mix project loaded.
6- From the prompt, run Code.eval_file("examples/simple/send_ada.exs") to run the example.
7- Check the balance of the destination address and you should see the balance increased.

About

Offchain Cardano Library for Elixr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Elixir 98.9%
  • Other 1.1%