Files
ark/noah/receive.go
Louis Singer a17aba8356 Noah CLI implementation (#42)
* Import stubs

* send and balance cmd implementations

* ListVtxos & faucet

* main.go: add faucetCommand

* fix after review

* send: continue if no forfeits included in current round

* remove cov in noah/Makefile

* fancy printJSON

* remove rpc_url

---------

Co-authored-by: altafan <18440657+altafan@users.noreply.github.com>
2023-12-06 12:57:35 +01:00

23 lines
392 B
Go

package main
import (
"github.com/urfave/cli/v2"
)
var receiveCommand = cli.Command{
Name: "receive",
Usage: "Print the Ark address associated with your wallet and the connected Ark",
Action: receiveAction,
}
func receiveAction(ctx *cli.Context) error {
addr, err := getAddress()
if err != nil {
return err
}
return printJSON(map[string]interface{}{
"address": addr,
})
}