-
Notifications
You must be signed in to change notification settings - Fork 27
/
doc.go
40 lines (40 loc) · 960 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Package cardano-go is a library for the Cardano Blockchain.
//
// Getting started
//
// The best way to get started working with cardano-go is to use `go get` to add the
// library.
//
// go get github.com/echovl/cardano-go
// go get github.com/echovl/cardano-go/node
// go get github.com/echovl/cardano-go/tx
//
// Hello cardano-go
//
// This example shows how you can use cardano-go to query UTXOs.
//
// package main
//
// import (
// "fmt"
//
// "github.com/echovl/cardano-go/node/blockfrost"
// "github.com/echovl/cardano-go/types"
// )
//
// func main() {
// addr, err := types.NewAddress("addr1v9c7flddz5nqj448t78h5mdgau8p9ee24m7n62g2s48akkcjzfhw3")
// if err != nil {
// panic(err)
// }
//
// node := blockfrost.NewNode(types.Mainnet, "project-id")
//
// utxos, err := node.UTXOs(addr)
// if err != nil {
// panic(err)
// }
//
// fmt.Println(utxos)
// }
package cardano