Folder examples provides examples to get you started on creating addresses, building transactions and submitting transactions to Cardano network(testnet or mainnet).
$ go get github.com/fivebinaries/go-cardano-serialization
-
Demonstrates generating addresses and exporting mnemonic backup phrases.
-
Demonstrates generating from 24 word backup phrases and deriving enterprise or base addresses for payments.
-
Demonstrates usage of the NewAddress function provided in package address for decoding bech32/base58 encoded addresses into one of the supported types(enterprise, base, byron, pointer). The Address interface also provides a
String()
method to encode to bech32 or base58(byron).
Node package provides an interface for interacting with Blockfrost API or cardano-cli. The examples in node/
demonstrate how to query UTXOs, Tip information, Protocol Parameters. The node interface can also be used to submit signed transactions using either of the backends.
-
Demostrates building, signing and submitting transactions to the cardano network. Utlizes packages address and node.