The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::cryp::Role::Masternode - Role for Masternode drivers

VERSION

This document describes version 0.001 of App::cryp::Role::Masternode (from Perl distribution App-cryp-mn), released on 2018-04-03.

PROVIDED METHODS

REQUIRED METHODS

new

Usage:

 new(%args) => obj

Constructor. Known arguments:

list_masternodes

Usage: $mn->list_masternodes => [$status, $reason, $payload, \%resmeta]

List all masternodes.

Method must return enveloped result. Payload must be an array containing masternode names (except when detail argument is set to true, in which case method must return array of records/hashrefs).

Known options:

  • detail

    Boolean. Default 0. If set to 1, method must return array of records/hashrefs instead of just array of strings (masternode names).

    Record must contain these keys: name (str), ip (IP address, str), port (port number, uint16). collateral_txid (collateral transaction ID, str), collateral_oidx (collateral's output index in collateral transaction, uint). Record can contain additional keys.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/App-cryp-mn.

SOURCE

Source repository is at https://github.com/perlancar/perl-App-cryp-mn.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-cryp-mn

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.