mirror of
https://github.com/aljazceru/ark.git
synced 2026-02-03 02:24:40 +01:00
* 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>
23 lines
392 B
Go
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,
|
|
})
|
|
}
|