},
}
-var createAccountAddressCmd = &cobra.Command{
- Use: "create-account-address <accountID | alias>",
- Short: "Create an account address",
+var createAccountReceiverCmd = &cobra.Command{
+ Use: "create-account-receiver <accountID | alias>",
+ Short: "Create an account receiver",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
var ins = struct {
ExpiresAt time.Time `json:"expires_at,omitempty"`
}{AccountInfo: args[0]}
- data, exitCode := util.ClientCall("/create-account-address", &ins)
+ data, exitCode := util.ClientCall("/create-account-receiver", &ins)
if exitCode != util.Success {
os.Exit(exitCode)
}
BytomcliCmd.AddCommand(deleteAccountCmd)
BytomcliCmd.AddCommand(listAccountsCmd)
BytomcliCmd.AddCommand(updateAccountTagsCmd)
- BytomcliCmd.AddCommand(createAccountAddressCmd)
+ BytomcliCmd.AddCommand(createAccountReceiverCmd)
BytomcliCmd.AddCommand(createAssetCmd)
BytomcliCmd.AddCommand(listAssetsCmd)