class GetTransactionForm(Schema): """ Get transaction by its identifier form. """ id = TransactionIdentifierField(required=True) node_url = NodeUrlField(required=True)
class GetBlockByIdentifierForm(Schema): """ Get a block by its identifier form. """ id = BlockIdentifierField(required=True) node_url = NodeUrlField(required=True)
class GetNodeAccountInformationForm(Schema): """ Get information about the node account by its address form. """ address = AccountAddressField(required=True) node_url = NodeUrlField(required=True)
class GetPublicKeysForm(Schema): """ Get a list of the addresses of the public keys form. """ address = AccountAddressField(required=True) node_url = NodeUrlField(required=True)
class GetStateForm(Schema): """ Get a state by its address form. """ address = AccountAddressField(required=True) node_url = NodeUrlField(required=True)
class GetReceiptsForm(Schema): """ Get a list of the transaction's receipts by identifiers form. """ ids = TransactionIdentifiersListField(required=True) node_url = NodeUrlField(required=True)
class GetPublicKeyInformationForm(Schema): """ Get information about public key of the public key information form. """ address = PublicKeyAddressField(required=True) node_url = NodeUrlField(required=True)
class GetBatchStatusForm(Schema): """ Get a batch status by its identifier form. """ id = BatchIdentifierField(required=True) node_url = NodeUrlField(required=True)
class GetAtomicSwapInformationForm(Schema): """ Get information about atomic swap by its identifier form. """ id = SwapIdentifierField(required=True) node_url = NodeUrlField(required=True)
class GetAccountBalanceForm(Schema): """ Get balance of the account form. """ address = AccountAddressField(required=True) node_url = NodeUrlField(required=True)
class TransferTokensForm(Schema): """ Transfer tokens to address form. """ private_key = PrivateKeyField(required=True) address_to = AccountAddressField(required=True) amount = fields.Integer( strict=True, required=True, validate=[ validate.Range(min=1, error='Amount must be greater than 0.'), ], ) node_url = NodeUrlField(required=True)
class GetBlocksListForm(Schema): """ Get a list of blocks form. """ ids = BlockIdentifiersListField(allow_none=True, required=False) limit = fields.Integer( allow_none=True, strict=True, required=False, validate=[ validate.Range(min=1, error='Limit must be greater than 0.'), ], ) head = BlockIdentifierField(allow_none=True, required=False) reverse = fields.Boolean(required=False) ids_only = fields.Boolean(required=False) node_url = NodeUrlField(required=True)
class GetStateListForm(Schema): """ Get a list of states form. """ address = AccountAddressField(allow_none=True, required=False) start = AccountAddressField(allow_none=True, required=False) head = BlockIdentifierField(allow_none=True, required=False) limit = fields.Integer( allow_none=True, strict=True, required=False, validate=[ validate.Range(min=1, error='Limit must be greater than 0.'), ], ) reverse = fields.Boolean(required=False) node_url = NodeUrlField(required=True)
class GetTransactionsListForm(Schema): """ Get a list of transactions form. """ ids = TransactionIdentifiersListField(allow_none=True, required=False) start = TransactionIdentifierField(allow_none=True, required=False) head = TransactionIdentifierField(allow_none=True, required=False) limit = fields.Integer( allow_none=True, strict=True, required=False, validate=[ validate.Range(min=1, error='Limit must be greater than 0.'), ], ) reverse = fields.Boolean(required=False) ids_only = fields.Boolean(required=False) family_name = FamilyNameField(allow_none=True, required=False) node_url = NodeUrlField(required=True)
class GetNodeConfigurationsForm(Schema): """ Get the node configurations form. """ node_url = NodeUrlField(required=True)
class GetNodeInitialStakeForm(Schema): """ Get the initial stake of the node form. """ node_url = NodeUrlField(required=True)
class GetNodePeersForm(Schema): """ Get the node's peers form. """ node_url = NodeUrlField(required=True)
class GetNodeInformationForm(Schema): """ Get the node information form. """ node_url = NodeUrlField(required=True)
class GetAtomicSwapPublicKeyForm(Schema): """ Get the public key of the atomic swap form. """ node_url = NodeUrlField(required=True)