code: func (api *API) CheckConsistency(hashes ...Hash) (bool, string, error) {
  	if err := Validate(
  		ValidateTransactionHashes(hashes...),
  		ValidateNonEmptyStrings(ErrInvalidTransactionHash, hashes...),
  	); err != nil {
  		return false, "", err
  	}
  	cmd := &CheckConsistencyCommand{Tails: hashes, Command: Command{CheckConsistencyCmd}}
  	rsp := &CheckConsistencyResponse{}
  	if err := api.provider.Send(cmd, rsp); err != nil {
  		return false, "", err
  	}
  	return rsp.State, rsp.Info, nil
  }
docs: // CheckConsistency checks if a transaction is consistent or a set of transactions are co-consistent.
  //
  // Co-consistent transactions and the transactions that they approve (directly or indirectly),
  // are not conflicting with each other and the rest of the ledger.
  //
  // As long as a transaction is consistent, it might be accepted by the network.
  // In case a transaction is inconsistent, it will not be accepted and a reattachment
  // is required by calling ReplayBundle().